3

I have been trying to launch a remote command in putty using the -m [file] flag and get the output putty.exe -[user]@server -m commandscript (the command is just cat> somewhere ) and after that I just get the output file via scp. Well it is not working for whatever reason but my question is: Can I get the output of a remote putty command just using the putty enviroment (without getting the file via scp??

HopelessN00b
  • 53,954
carlinux
  • 113

1 Answers1

2

You can accomplish that with plink, which is available at PuTTY download page.

Example:

plink user@server "cat /tmp/some/file" > local_output.txt