Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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??

share|improve this question
up vote 1 down vote accepted

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


plink user@server "cat /tmp/some/file" > local_output.txt
share|improve this answer
perfect, I thought plink was just for the tunnelling sessions. Muchas gracias! – carlinux Feb 17 '14 at 17:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.