Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet Keep Alive Script

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
PLEASE HELP!!

I am the hardware person for my company. We have a remote SCO server that serves approximatlty 13 accountants off site. They telnet in to access the program. Unfortunatly it is going through our headquarters firewall that will time out the connection after 5 minutes of inactivity. Can someone please send me a script for ProComm Plus 4.8 that will send sonething over the telnet connection every 4 minutes? I have no programming experience at all.

Any advise will be greatly appreciated

Parks
 
This should do the trick for you:

proc main
when quiet 240 call send_CR

while 1
yield
endwhile
endproc

proc send_CR
transmit "^M"
endproc

This script will send a carriage return if no data has been received for the past four minutes. One thing to keep in mind is that this script will not care if your users were in the middle of typing some command and stepped away from the keyboard for a few minutes. You may also want to modify the script to send a different character than a carriage return (would this character cause a problem if sent while they were in the application?) depending on what works best in your situation.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top