Computing.Net > Forums > Disk Operating System > Waiting until text appears

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Waiting until text appears

Reply to Message Icon

Name: bernoulli
Date: September 29, 2003 at 06:02:45 Pacific
OS: Windows 2000
CPU/Ram: AMD Athon 1800/DDR512
Comment:

Hi

I would like to ralize a .bat-File, who automizes some Telnet-Commands.
To login, i have to wait until i can enter the User-Name and the Passwort. In a UNIX-File it looks like this.

set timeout -1
spawn telnet IP-Address
rem match_max 100000
expect -exact "Enter login: "
send -- "User-Name\r"

How can i do this for a .bat-File on Windows 2000?

Thanks a lot

bernoulli




Sponsored Link
Ads by Google

Response Number 1
Name: robinsiebler
Date: September 29, 2003 at 15:09:40 Pacific
Reply:

I'd say either you have to be using 4NT or you have to use Windows Scripting Host. I don't think you can do this from a straight batch file (but I could be wrong).


0

Response Number 2
Name: Miskva
Date: October 3, 2003 at 02:08:34 Pacific
Reply:

Try via reverse redirection:

telnet < input.log

In the input.log file, you just state the answers you would give, in the exact way they are asked when you run "telnet" just like that. I am not saying this will work, but you give it a try. Some programs are "protected" against this (on purpose or not), and any program with passwords and users might be in that case ..

Miskva


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Waiting until text appears

Wait for process to end www.computing.net/answers/dos/wait-for-process-to-end/13170.html

making batch file wait for one task to finish before another starts www.computing.net/answers/dos/making-batch-file-wait-for-one-task-to-finish-before-another-starts/5011.html

Testing for a file during installation www.computing.net/answers/dos/testing-for-a-file-during-installation/10865.html