Solved

have rsh to wait for a remote command to finish

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MaxPosPhaseCorrection setting 3 43
Printing issues after RDC session 3 29
FTP server windows 2008 5 39
Win 10...Some user folders missing location tab 7 80
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
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). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

809 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