Solved

have rsh to wait for a remote command to finish

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

813 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

8 Experts available now in Live!

Get 1:1 Help Now