Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: behaviour with rsh

Heading, Anthony wrote:
> Zoltan wrote
> > % rsh -n bolyai 'exec xterm -d :0 <&- >&- 2>&-'
> This doesn't work for me on sunos4.1.3 with hzoli3 (which I've now
> accidentally upgraded to by deleting beta3).
> Nor does   rsh narg 'sleep 10 & disown',  which hangs for 10 seconds,
> seemingly regardless of what I do with file descriptors.

I think this is not zsh specific.  My login shell is tcsh on the Solaris box,
and it has similar problems.  Rsh has many problems which casuses processes to
hang.  Just read an rsh manpage about a few problems.

I assume that the sun rshd waits for the cild and something else I do not know
while the linux rshd exits immediately if the child closed all of the
communication lines.  Both is a reasonable behaviour, but if depends on the
rshd and zsh has nothing to do here.  Usually to start an rsh in the
background, you should do something like

% rsh turan 'sh -c "xterm -d bolyai:0 < /dev/null > /dev/null 2>&1" &'

It may be necessary to give a fill pathname of xterm.  You can replace sh
above with any Bourne compatible shell, or with csh after a little
modification.  For a more complicated example look at the xrsh or xon


Messages sorted by: Reverse Date, Date, Thread, Author