I want to save the output of the below command:

start C:\Users\Desktop\putty.exe -ssh server_ip  -l username -pw password -m <path of the command file> 

I used the "> <output_file>" at the end of the above command but it didn't work out.

How to get the logs saved in a file ?


Once you redirect the output, like so: ls > output.txt

Perform pwd, output.txt will get stored in the present working directory.

If you want to store in local system then go to Settings -> Session -> Logging -> log file name.

You can store the complete session in the file in your local system

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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