Solved

have rsh to wait for a remote command to finish

Posted on 1998-01-09
3
449 Views
Last Modified: 2013-12-28
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!
0
Comment
Question by:columbiaRiver
3 Comments
 
LVL 15

Expert Comment

by:jrhelgeson
ID: 1788907
What?
Could you please clarify?
0
 
LVL 1

Accepted Solution

by:
SvenT earned 50 total points
ID: 1788908
I haven't been able to test this since I don't have the appropriate machines available but isn't this the easisest way to solve your problem:

Make a .BAT or .CMD file containing the following lines:
  C:\abc\theEXE
  ftp whatever

Then call this file instead of your theExe:
rsh ip-address -n c:\abc\yourNewCmdFile

Hope this helps!

0
 

Author Comment

by:columbiaRiver
ID: 1788909
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.  
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you Lost your Administrator password for Windows XP, Vista, or 7 this CD will help you reset the password to blank so you can log in. Once in you should change that blank password to something!! Download the ISO on this page http://www.spl…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now