V9 Telnet

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jan 11, 2007 11:10 am

r will change every time TelnetWaitFor>hTN, ,5,r is executed. So it will change on every loop iteration.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jan 11, 2007 6:10 pm

v9 telnet = Macro Scheduler, Version 9, Telnet commands.
Aaaargh! Thanks Marcus for explaining that.

Going back, I can't believe that I missed that. You had already explained that, and it shows up in the script samples. I must have jumped in at the end, and ignored everything previous. Sorry for any confusion.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

Can Telnet waitfor recognize hidden/hex character

Post by mfauzim » Thu Jan 11, 2007 11:54 pm

Marcus,
Since your suggestion to use space for the response, How about using hidden/hex character such as carriagereturn (CR). Can the telnet command recognize hidden/hex character for the response. Appreciate if you can give example.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jan 12, 2007 9:13 am

Yes, just specify CR. CR is a built in variable for carriage return:

TelnetWaitFor>hTN,CR,5,r
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

sunole
Newbie
Posts: 14
Joined: Wed Aug 29, 2007 6:28 pm

Post by sunole » Wed Aug 29, 2007 11:01 pm

mtettmar wrote:Yes, just specify CR. CR is a built in variable for carriage return:

TelnetWaitFor>hTN,CR,5,r
just watch that the first CR you read is the CR you have sent after your previews command, so look for the second CR or read line by line with each CR untill the buffer is empty/quiet.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts