Solved

have rsh to wait for a remote command to finish

Posted on 1998-01-09
3
466 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Update Isn't working 41 136
lan speed when you have different speeds 5 49
Transferring all data and applications from old pc to new pc 21 54
adobe premier render 10 39
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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). …

911 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

22 Experts available now in Live!

Get 1:1 Help Now