i am fairly new to scripting and i am not sure on how to go about doing what i want to do. Basically i want procomm to execute a command whenever a certain data is output on my terminal session. What would be the best way to do this.
or is there a way for me to write a script that executes a simple command every 10 minutes. I want to do this because if my terminal stays idle for 15 minutes i get logged out. as long as i hit enter or anything really it will stay alive. I thought about scheduling but the lowest amount of time was an hour.
For your first question, the best way would be to use the when target command to look for a certain string and then call a procedure that uses the transmit command to send the proper command.
As for the second question, here is a script that sends a carriage return every five minutes when nothing has been received from the remote system:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.