Link to home
Start Free TrialLog in
Avatar of columbiaRiver
columbiaRiver

asked on

have rsh to wait for a remote command to finish

I'm writing this program, to rsh to some PC, running NT or 95, to run a command. After the command finishes, I need to ftp the output of the remote commeand.  Therefore I need to know when the remote command is finished.

1.  Is it true that rsh on NT/95 comes back immediately after it submitted the remote command?

2. If so, how do I make it wait?  Or how can I be sure the remote command is finished?

here's my rsh command -
rsh ip-address -n c:\abc\theEXE

Thanks!
Avatar of jrhelgeson
jrhelgeson
Flag of United States of America image

What?
Could you please clarify?
ASKER CERTIFIED SOLUTION
Avatar of SvenT
SvenT
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of columbiaRiver
columbiaRiver

ASKER

I see your idea. Although there's other part of the yourNewCmdFile (I didn't mention) can not run on the ip-address machine, I thank you for your good idea and solution.