Starting a second command while the first is still running from a batch file
Posted
by
ids
on Stack Overflow
See other posts from Stack Overflow
or by ids
Published on 2011-01-17T22:44:15Z
Indexed on
2011/01/17
22:53 UTC
Read the original article
Hit count: 157
I am trying to create a batch file that will run a utility that opens a connection to a device on the internet then starts a telnet session. I am at the point where once the connection opens the batch file doesn't proceed.
Batch file
@echo off
set /p serial=What are the last 8 of the STB's serial?
udp.exe -c 127.0.0.1 23 %serial% x.x.x.x 11111 127.0.0.1 23 | telnet 127.0.0.1
Output
What are the last 8 of the STB's serial? XXXXXXX
Ready for XXXXXXX
It just sits at the 'ready ...' line and never opens the telnet connection. I have tried various | and & but no luck.
© Stack Overflow or respective owner