Putty Serial Port Script Shadow

Chapter 7: Using the command-line connection tool Plink. PuTTY can connect directly to a local serial line as an alternative to making a network connection. You can also modify the precise shades used for the bold versions of these.

Is there a command which configures the PuTTY to open up with 'Session Logging' in 'Printable output'. I could do this manually, but i want to put this in a cammand line which will configure the PuTTY and open the console with these configurations. The configurations what i want are --> In Sessions category: Session logging should be printable output. By default it is None and give the path of the logfile name. And select 'always append to the end of it' --> Select 'Line discipline options' Just like, the below command putty.exe -serial com4 -sercfg 115200 this configures the PuTTY with serial line COM port 4 and Speed 115200. I want similar command line for the said configurations. One thing is, the session can be saved with the required settings and loaded, but the script won't be universal.

That is, it cannot be run on all the PCs.i will have to create many sessions (since i am using multiple baud rates/speed) on each and every PC where my script will be executed. And what command should be used to close the PuTTY console? I tried typing 'exit' but in vain! I had to use mouse. But since i am automating, i don't want any intervention.

I will be using it in a.bat file and a.vbs to send the commands to the PuTTY console. Nexus (On a Windows PC) Any help would be sincerely appreciated. Thanks in advance! Unless there's an undocumented option, PuTTY doesn't have command-line switches for controlling logging (check the, section 3.8). However, you could write a wrapper script that changes the default settings in the registry before launching PuTTY, e.g.: @echo off setlocal set settings=HKCU Software SimonTatham PuTTY Sessions Default%%20Settings reg add '%settings%' /v LogFileName /t REG_SZ /d '%~1' reg add '%settings%' /v LogType /t REG_DWORD /d 0x1 reg add '%settings%' /v LogFileClash /t REG_DWORD /d 0x0 putty. Endlocal Save it as e.g.

Putty serial port script shadows

Putty.cmd and start it like this: putty.cmd 'C: path to putty.log'.

Related Post