I've created a .bat file with this line:
start D:\TEMP\putty.exe -ssh user@server.com -pw password
That opens a putty session and logged in it with the user and password i've already specified. But now, I want to enter a simple command like "ls -l" for example.. How can I do that?
I've also tried plink...The line in that case is this one:
start D:\TEMP\plink.exe -v -ssh
user@server.com -pw password -m UNIX_commands.txt
and in that file "UNIX_commands.txt" I've added the following lines:
set -o emacs
cd Temp/data/capture
ls -l
all works fine (the commands are executed) but i can't see the putty session... all i can see is the verbose in my DOS windows of the last line "ls -l"...