List Info

Thread: to run a rsh remote command




to run a rsh remote command
user name
2008-06-13 03:16:31
hi all
I am trying to get a list of machines and send them commands
to run ,
but I dont want them to bje done one after the other < i
want them to
run them in parallel from a script >

What I am doing is

foreach i (`cat q`)
rsh $i -n <some command >
end

Now I want the job to be taken by the machine 1 and we
should not wait
for the machine to finish and return for us to iterate

Re: to run a rsh remote command
country flaguser name
Sweden
2008-06-13 14:28:19
parag <parag_paulhotmail.com> wrote:

> i want them to run them in parallel from a script
> 
> What I am doing is
> 
> foreach i (`cat q`)
> rsh $i -n <some command >
> end

Simple solution:

foreach i (`cat q`)
rsh $i -n <some command > &
end

regards Henrik
-- 
The address in the header is only to prevent spam. My real
address is:
hc3(at)poolhem.se Examples of addresses which go to
spammers:
rootlocalhost postmasterlocalhost


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )