http://stackoverflow.com/questions/21831161/how-to-set-putty-logfile-using-putty-command-line
Solved by windows reg update the putty store the configuration in the registry: The path to the key is: HKEY_CURRENT_USER \Software \SimonTatham \PuTTY \Sessions \Default%20Settings
1- create a reg file for example "settings.reg" content:
Solved by windows reg update the putty store the configuration in the registry: The path to the key is: HKEY_CURRENT_USER \Software \SimonTatham \PuTTY \Sessions \Default%20Settings
1- create a reg file for example "settings.reg" content:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"LogFileName"="C:\\..path..\\mylogfile.log"
"LogType"=dword:00000002
in my batch file, i added this line before executing putty.exe `reg import settings.reg`
`putty -x -t -ssh -2 -l root 10.56.56.35 -m commands.txt`
No comments:
Post a Comment