| William 2007-02-16, 7:16 pm |
| "William" <Reply@NewsGroup.Please> wrote in message
news:TPCdnbRDTab0a0jYnZ2dnUVZ_u2mnZ2d@gi
ganews.com...
> Here's what I've tried so far (variations on what I found in
> the Unix FAQ: rsh machine -n 'command >&/dev/null </dev/null &')
>
> $ rsh linux7 -n -l builder "cd /opt/builds ; ./BuildEm >&/dev/null
> </dev/null &"
> [1] 25630
> <and here it hangs until BuildEm is done>
>
> Also tried this:
> $ rsh linux7 -n -l builder "cd /opt/builds ; ./BuildEm >&/dev/null
> </dev/null &" &
>
> Same results.
Finally worked out a solution:
$ rsh linux7 -n -l builder "( cd /opt/builds ; ./BuildEm ; )\
>&/dev/null </dev/null &"
With both commands, cd and BuildMe, wrapped up in a single process,
and that process's stdout/stdin/stderr redirected it comes right
back as nice as you please.
-Wm
|