I'm working on a project where I need to connect to a data logger using PuTTY and download data directly into a text file. The issue I'm facing is that PuTTY also saves the command I used to download the data, along with any previous text outputs from the terminal. While I can delete this text manually afterward, I would prefer a way to avoid having it copied over in the first place so that only the downloaded data is stored. I've tried tweaking the settings in the 'Session - Logging' section, but haven't found a solution yet. Any tips on how to achieve this would be greatly appreciated!
4 Answers
A keyboard macro program could help automate the process for you. It can launch PuTTY, log in, and set it up to save the log more cleanly. Not a perfect solution, but it might get you closer to what you want.
If you're connecting via Ethernet, you might be dealing with SSH. Use the built-in OpenSSH in Windows to redirect the output directly to a file. That way you can capture exactly what you need without all the extra stuff getting in there.
You could look into using PLINK for automated SSH connections. It allows you to run commands directly and save the results into a file cleanly. Just make sure your session settings are right.
I'll check out PLINK! Sounds like it could be exactly what I need.
Consider using a script that can filter out what you don't want from the output after saving it. You might want to look into PowerShell or even create a batch file for this purpose. It can automate the cleanup process.
Great idea! I didn’t think of scripting it. That could save me a lot of time.

That sounds like a solid plan! Just make sure your command syntax for redirecting the output is correct.