How Can I Save Just Data in a Text File from PuTTY Without Extra Output?

0
15
Asked By CuriousCoder99 On

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

Answered By MacroMaster On

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.

Answered By TechieTom On

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.

GadgetGuru -

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

Answered By NetworkNerd On

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.

PuTTYPal -

I'll check out PLINK! Sounds like it could be exactly what I need.

Answered By ScriptSavant On

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.

DataDiva -

Great idea! I didn’t think of scripting it. That could save me a lot of time.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.