Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use “rsh” without having the rsh hang around until the remote command has completed?

Command hang remote rsh
0
Posted

How do I use “rsh” without having the rsh hang around until the remote command has completed?

0

(See note in question 2.7 about what “rsh” we’re talking about.) The obvious answers fail: rsh machine command & or rsh machine ‘command &’ For instance, try doing rsh machine ‘sleep 60 &’ and you’ll see that the ‘rsh’ won’t exit right away. It will wait 60 seconds until the remote ‘sleep’ command finishes, even though that command was started in the background on the remote machine. So how do you get the ‘rsh’ to exit immediately after the ‘sleep’ is started? The solution – if you use csh on the remote machine: rsh machine -n ‘command >&/dev/null /dev/null 2>&1

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123