• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

plink -v -ssh -batch -l user -pw xxx ipxxx -m commands.txt > result.txt

T

TigerX777

Guest
Hello Guys

today im trying to execute a list of commands from a text file remotely using plink

but when i execute it i got this:

plink -v -ssh -batch -l user -pw xxx ipxxx -m commands.txt > result.txt

Started a shell/command
: command not found
uname: extra operand `\r'
Try `uname --help' for more information.
: command not found
: command not founde
: command not found
: command not found
: command not found
: No such file or directory
: command not found
Server sent command exit status 127
: command not found
Disconnected: All channels closed

any ideas of what im doing wrong?

thanks !
 


It looks like the commands.txt file may not be in the correct form for Plink to interperet.
 
Hello Ryanvade

yes my commands file was corrupted so i generate a new one and later tested again and it works.

thanks and regards !!!
 

Members online


Top