Save PuTTY ouput to file from command-line

后端 未结 4 1698
北海茫月
北海茫月 2020-12-31 08:52

Is there any way to save the PuTTY output to a file using the command line? I know this is easily done using the GUI but in my case it has to be done automatically.

4条回答
  •  耶瑟儿~
    2020-12-31 09:35

    This can be done with putty. The answer is little late considering the time the questions was asked, however this might help someone.

    In putty, using GUI, you can save sessions with logging option on, as shown below.

    Enter Host Name, Name the session, Go to Logging Option in the left top corner, select all sessions, provide log file name and location, go back to Session tab, click on the save button. Done, you have saved a session.

    Now open CMD and write the command as below

    You are done. Every time this session is invoked, the commands and output will be logged. Hope this helps.

提交回复
热议问题