Unix Shell - Getting rsh on Solaris to return without waiting - no luck with the FAQ's method

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2007 > Getting rsh on Solaris to return without waiting - no luck with the FAQ's method





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Getting rsh on Solaris to return without waiting - no luck with the FAQ's method
William

2007-02-16, 1:17 pm

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.

Any suggestions?

-Wm


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





Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com