Wait and Waitln
Hi,
I think that if you want to wait "Username:" and new line, waitln is better.
It's better to call flushrecv if the string you're waiting for could come from the host.
Thanks,
Reply To nmaya
Hi, I think that if you want to wait "Username:" and new line, waitln is better. It's better to call flushrecv if the string you're waiting for could come from the host. Thanks,
I have tried both wait and waitln for it. I do have a timeout too, since some switches don't have a Username prompt. But there seems to be a problem?
Code snippet:
timeout = 8 waitln 'Username:' if result=0 goto swPass if result=1 goto swUser flushrecvAny suggestions? Thanks.
When you login to a switch like this in manually,
Username: foo
use "waitln" macro command to that switch. But like this,
Username: foo
use "wait" macro command. Please see sample script "login.ttl" in C:\Program Files (x86)\teraterm.
If you care about buffer, call flushrecv before wait or waitln.
Hello. I would just like to inquire about the difference of wait and waitln in a setup? I've been using it on a macro in which has a wait for "Username:" and "Password:" strings. What would be best and should I use flushrecv for every wait command? Thank you.