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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

General Procomm Question

Status
Not open for further replies.

bcbm

Technical User
Sep 21, 2004
41
US
I have a general question about Procomm. I want to be able to send a keep alive command to peice of equipment every 5 mins. Any idea's how I could do it only when I'm not sending a command. I have tried looking at the metakeys but do not see how I could put a timer on it.
 
Is there a certain keypress you could send, such as the Enter key, that would cause the system to acknowledge you are connected but would not run an actual command? If so, this should be possible. I have a couple different takes of this on the samples page of my site (link below) that you can use as a starting point.

 
This method should do it, provided an "EnterKey" would keep your connection alive.
If you are inputting commands the script will halt FOREVER at the WAITQUIET command, only progressing past when the terminal has been idle for 3 mins, at which point it sends an ENTER KEY to keep the connection alive, and then loops around.

Code:
proc MAIN 
call Time_Out
end proc

proc TIME_OUT
waitquiet 180 FOREVER ;halt here until 3 mins of no commands,etc
transmit "^M" ;transmit ENTER KEY
call TIME_OUT ;repeat FOREVER
endproc
 
I did a copy and paste of the script above, but when I compile it I get this error and I don't understand why.

ASPECT (tm) Script Compiler Version 4.60
Copyright © 1992-1998 Quarterdeck Corporation. All rights reserved worldwide.

TIMEOUT.WAS:
Error C066 Line 5: Missing ENDPROC or ENDFUNC command
 
Thanks guys, that worked. I didn't even notice the extra space in there when reading it.
 
I am new to procomm plus and I am wondering if anybody out there has written procomm plus scripts for a falcon system and if you have if you could give me some ideas to start the scripts, always been more hardware than software and dont want to lose my job.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top