How to issue an rsh command to run in the background?

Example: within a batch file i call rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh

which runs on a remote unix machine. This script takes a while to execute, and I want my batch file to continue running parallel to this ksh script.

the idea is, that the batch file that executes this command will continue running and not block until the script returns/exits.

link|improve this question
I call this command within a batch file. – Hirschkaefer Dec 1 '11 at 14:33
rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh – Hirschkaefer Dec 1 '11 at 14:34
1  
Have u tried to use '&' ? – Boban P. Dec 1 '11 at 14:41
Do you really call rsh from a DOS shell script? – SvenW Dec 1 '11 at 14:44
Who knew? There's apparently a usable rsh for Windows. That said, I wasn't aware of DOS being able to do job control in general. – cjc Dec 1 '11 at 14:51
show 4 more comments
feedback

1 Answer

If you don't mind having a second command prompt window running, Windows XP and newer have the start command available to launch a command in another command prompt window.

Example:

start /min rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.