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

Time Problem????? 1

Status
Not open for further replies.

papollo

Programmer
Oct 19, 2001
71
US
Hello:
I am calling a aspect script from WinBatch.
Over the weekend, there are times that if the aspect script does not connect via the phone number the session never ends, It holds up other unattended procomm sessions.

Is there a command to have the script timeout and exit.

I found the command Waitfor (The login Line) 10.
Does 10 mean wait 10 minutes?
So if the line is busy or the system gets hung up.
The script will end after 10 minute,

Thanks in Advance.

 
The 10 means ten seconds.
You can set waitfor for 1 second, 5 seconds, 600 seconds, etc.
You can also use Waitfor (login line) Forever.

If there is no time specified in a waitfor line, the default is twenty seconds.

Can you tell if your Procomm script has stopped running when it gets held up? If so, then maybe it is just th port that is holdin up the additional scripts. In that case, you couls add an exit step:

Waitfor (prompt) 120 ; 2 minutes
If failure
Hangup
PWexit
Endif
(next step)

Robert Harris
Communications Advantage
 
thanks for answering the post?

I will try what you suggested?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top