[ale] scripts, file I/O, and loss of hair

Jim Kinney jim.kinney at gmail.com
Thu May 12 17:40:50 EDT 2011


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 


More information about the Ale mailing list