Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - WAITFOR FOREVER?
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedWAITFOR FOREVER?

 Post Reply Post Reply
Author
Message
volkmaniac View Drop Down
Newbie
Newbie


Joined: June 12 2008
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote volkmaniac Quote  Post ReplyReply Direct Link To This Post Topic: WAITFOR FOREVER?
    Posted: June 13 2008 at 8:31am
I've been having problems with waitfor timing out.
 
This was timing out
 
.WaitFor 0, 0, "> "
 
This didn't time out but the remainder of the script didn't execute.
 
.WaitFor 0, 10000, "> "
 
 
In ProComm aspect they offer a waitfor forever option. How can I ensure the session will stay alive and continue with execution?
Jim Volkman
jamesvolkman@yahoo.com
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: June 16 2008 at 11:07am
Hi Jim -

If the 2nd case in your example did not get past the WaitFor, then the script did not see the text you are looking for, hence the remainder of the script would not execute. Be sure you set the InputMode property of the session to 1 before using WaitFor in a script. You need to set it before whatever triggers the host to send the text. Before the script exits, be sure to set .InputMode back to zero.

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.