Computing.Net > Forums > Windows XP > Plink Output Code Bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Plink Output Code Bat file

Reply to Message Icon

Name: gamarga
Date: July 16, 2009 at 07:09:49 Pacific
OS: Windows XP
Subcategory: Configurations
Comment:

Hi,

I am using

(plink -ssh -l MYNAME -pw MYPASS -m .\empty.txt XXX.XXX.XXX.XXX <.\commands.txt)>>output.txt 2>>&1

from a previous post which works fine however after I have ssh'ed into the device I then wish to telnet to another device to do some commands and get the output.

The problem is I get this output because it closed to fast:

Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xx
.
Escape character is '^]'.
Connection closed by foreign host.

Any help to make it wait longer?



Sponsored Link
Ads by Google

Response Number 1
Name: Ed in Texas.
Date: July 17, 2009 at 02:36:33 Pacific
Reply:

gamarga, you can add commas (,) to modem command strings to create pauses. Maybe here too?
HTH.
Ed in Texas.


0

Response Number 2
Name: gamarga
Date: July 22, 2009 at 07:28:48 Pacific
Reply:

Hi,

Thanks for the reply. It doesnt seem to work. I think the problem is that its starting a new session within a session so it stops recording the output and puts what its got into the output.txt

Any other suggestions or scripts?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


installing nero 6 Methods to eliminate ripp...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Plink Output Code Bat file

Output to a log file using bat file www.computing.net/answers/windows-xp/output-to-a-log-file-using-bat-file/175506.html

matrix bat file www.computing.net/answers/windows-xp/matrix-bat-file/122116.html

close explorer.exe with a*.bat file www.computing.net/answers/windows-xp/close-explorerexe-with-abat-file/146504.html