Launching Applications via Telnet

I need to create a BAT file to run the application via telnet, but as far as I know, in DOS there is no way to do this. Telnet does not allow sending any command to the remote computer at the very moment of connection, and each subsequent command in the BAT file will be executed only after telnet is stopped. This hypothetical piece of code illustrates what I want to do:

telnet 100.99.98.1 "C:\Application\app.exe -a -b -c"

And this will launch app.exe on machine 100.99.98.1 with three parameters. Despite my efforts, nothing came of it. Is there any way to do this?

Tks

Pedrin Batista

+2
source share
7 answers

give expect try

on the web page:

- , telnet, ftp, passwd, fsck, rlogin, .. . .

+1

:

echo "c:\application\app.exe -a -b -c" | telnet 100.99.98.1

, telnet .

+6

- , Windows. PsExec Microsoft/SysInternals, .

PsExec PsTools . SysInternals Microsoft, .

, , . Windows 445 . , SSH.

+3

telnet , , .

(ssh), ssh (100.99.98.1 ).

EDIT:

http://sshwindows.sourceforge.net/ ssh ( cygwin) Windows.

+2

?

telnet 100.99.98.1 <someScript

someScipt , C:\Application\app.exe -a -b -c

Remote Shell daemon ? , , , telnet.

+2

telnet ? " ", , ​​ TeraTerm. start script .

0

Cygwin ( , Linux/Unix, Windows). Cygwin , .

0

All Articles