?
Solved

have rsh to wait for a remote command to finish

Posted on 1998-01-09
3
Medium Priority
?
517 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

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

Accepted Solution

by:
SvenT earned 150 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Determining the an SCCM package name from the Package ID
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

765 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