I am using Plink to run a command on remote machine. In order to fully automate the process I need to save the execution log somewhere. I am using a bat file:
This is the one of my way to log everything when I use putty.exe on Windows.