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??
Launch a batch remote command via /putty ssh and get the output in a local file
putty
Related Topic
- Linux – Windows-to-linux: Putty with SSH and private/public key pair
- Ssh – X11 Forwarding works on Windows with Xming and Putty, but not with ssh command line
- SSH – Putty Private Key and Passphrase
- Ssh – Copying over SSH via PuTTY tools is slower than via WinSCP
- Ssh – Dumping command output from SSH session to procurve
- Ssh – Converting SSH command to a PuTTY command
Best Answer
You can accomplish that with plink, which is available at PuTTY download page.
Example: