RSH command finishes but does not terminate.

J

Jason BArona

I am running a RSH command from a a BAT file in Windows
2000. It works fine with Windows NT 4 but hangs up in
Windows 2000. I know that is manages to execute the
command because I can see the data in the output
file "disconnect.txt" but RSH does not terminate allowing
for other lines in the BAT file to execute. While it hangs
on the RSH command I can hit <ENTER> and it will terminate
and continue but that is not an option because 20 machines
run this BAT file hundreds of times a day.

This is the line I run, IP,user have been changed for
security reasons.

rsh 90.120.48.10 -l frontier next_dis %1 > disconnect.txt

Help would be greatly appreciated.

Jason Barona
 
P

Pegasus \(MVP\)

Jason BArona said:
I am running a RSH command from a a BAT file in Windows
2000. It works fine with Windows NT 4 but hangs up in
Windows 2000. I know that is manages to execute the
command because I can see the data in the output
file "disconnect.txt" but RSH does not terminate allowing
for other lines in the BAT file to execute. While it hangs
on the RSH command I can hit <ENTER> and it will terminate
and continue but that is not an option because 20 machines
run this BAT file hundreds of times a day.

This is the line I run, IP,user have been changed for
security reasons.

rsh 90.120.48.10 -l frontier next_dis %1 > disconnect.txt

Help would be greatly appreciated.

Jason Barona

Could it be that the command is waiting for some keyboard
input? Did you try running it without the output redirection?

You can get your batch file to continue after rsh.exe by coding
like so:

start "" rsh 90.120.48.10 -l frontier next_dis %1

Use kill.exe to kill any residual rsh processes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top