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

waitfor what?

Status
Not open for further replies.

polluxtech

Programmer
Dec 14, 2009
15
CN
remote send the 0000> as the end of response.
how to write waitfor?

but when I write blew code line,it seems not work fine:

waitfor "0000>"

please help!
 
There are a couple possibilities here. The first is that waitfor times out after 30 seconds unless you add the FOREVER keyword at the end of the command. The second possibility is that a non-printable character is embedded somewhere in the 0000> string so that it doesn't appear like what the waitfor command is looking for. In that case, you can use Procomm's Monitor Window to check for what is being sent. Below is some information from my site on how to use the Monitor Window:

Procomm's Monitor Window can be used to view the incoming and outgoing data, in both hex and ASCII format. To activate this window, select the Data | Monitor Window menu item. Resize the Monitor Window so that you can view the entire width of the window, then click back in the Procomm Plus window so that the Monitor Window does not have focus. Incoming text is displayed in red, while text you send is colored blue. The Monitor Window can be handy for viewing incoming escape sequences (to determine if Procomm Plus is responding properly to them) or to verify that the program is sending the data you think it should be.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top