On Sun, Mar 23, 2003, Nadav Har'El wrote about "Re: output from a remote host":
> On Sun, Mar 23, 2003, Orna Agmon wrote about "output from a remote host":
> > My problem is that rsh does not work well in the background (in other 
> > words, ^z bg brings it to a state of "suspended (tty output)"), since both 
> > rsh and rexec need the terminal's standard output as thier own.
> 
> I believe your problem is not with the standard output, but rather with
> the standard input - rsh tries to pass the standard input to the remote
> shell, and you cannot do that for a background process.
> 
> Try the "-n" option of rsh to solve this.

Oh, and I forgot, where did you expect "rsh"'s output to go after you
put it in the background?? You probably wanted to redirect its output
somewhere, as in

        rsh -n anothercomputer "dosomething" >somefile 2>&1 &

If you don't expect any output, redirect it to /dev/null:

        rsh -n anothercomputer "dosomething" >/dev/null 2>&1 &

-- 
Nadav Har'El                        |     Sunday, Mar 23 2003, 19 Adar II 5763
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |If I am not for myself, who will be for
http://nadav.harel.org.il           |me? If I am only for myself, who am I?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to