[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] scripts, file I/O, and loss of hair
- Subject: [ale] scripts, file I/O, and loss of hair
- From: jim.kinney at gmail.com (Jim Kinney)
- Date: Thu, 12 May 2011 17:40:50 -0400
- In-reply-to: <20110512164740.298a6296@zaphod>
- References: <[email protected]> <[email protected]> <20110512164740.298a6296@zaphod>
On Thu, May 12, 2011 at 4:47 PM, Pat Regan <thehead at patshead.com> wrote:
> On Thu, 12 May 2011 15:30:09 -0400
> Jim Kinney <jim.kinney at gmail.com> wrote:
>
> > Some stuff I've tried:
> > rsh $node 'echo $$; $command < $input &'
> > rsh $node 'echo $$; $command < $input &' &
> > rsh -n $node 'echo $$; $command < $input &'
> > mypid=$(rsh $node 'echo $$; $command < $input &')
> > rsh $node 'echo $$; $command < $input &' 2>&1
>
> How about:
>
> rsh $node '$command < $input & echo $!'
>
fail :-(
Works from cli but fails from script due to nested sessions (I guess)
did the cheap: rsh... &
mypid=$(rsh $node "ps ax -u $USER" | grep $command | grep -v grep | awk
'{print $1}')
> > BTW: RHEL5 has a BUSTED rsh. -n DOES NOT WORK!
>
> Maybe everyone is using ssh :)
>
want MAX! POWER! for number crunching not encrypting useless tracking
data...
>
> Pat
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
--
James P. Kinney III
As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as they
please, and those who survive will be left to contemplate the outcome.
- *2011 Noam Chomsky*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110512/4a09d542/attachment.html