Jump to content
Sign in to follow this  
sob_l

Making Automatic Copies of Log Files in TeraTerm

Recommended Posts

sob_l

Hi all,

I have been working on some automatic logging of some wireless devices using TeraTerm. I'm basically pinging a few satellites in a mesh network system and detecting when the ping drops, using a batch script. Whenever it drops, I open a TeraTerm window, connect it to Telnet, send some commands, and save the outputs of those commands to a log text file. However, my script is currently overwriting the previous log file every time ping fails (i.e. every time I trigger the TeraTerm macro). I want to know if there is a way, possibly using TeraTerm syntax, for me to check if a log file with a certain name "log.txt" already exists, then generate a new log file, say "log-1.txt", "log-2.txt", etc. if it does, so that I don't overwrite the results of each trial. Any help would be much appreciated.

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×