Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: behaviour with rsh
- X-seq: zsh-workers 439
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: heading_anthony@xxxxxxxxxxxx (Heading Anthony)
- Subject: Re: behaviour with rsh
- Date: Tue, 10 Oct 1995 21:02:43 +0100 (MET)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (zsh-workers)
- In-reply-to: <n1398785313.45656@xxxxxxxxxxxxxxxxxxxxxxxxxx> from "Heading, Anthony" at Oct 10, 95 08:00:01 pm
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
scripts.
Bye,
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author