Re: background execution

On 12 fev, 13:51, Ed Morton <mor...@xxxxxxxxxxxxxx> wrote:
On 2/12/2008 9:18 AM, apogeusiste...@xxxxxxxxx wrote:

Can you tell me why this script doesn´t go back
to the prompt immediatly ?

cat ip_address | while read a b
/usr/sanford/ping3 $a $b >> x.lis &

Perhaps /usr/sanford/ping3 is waiting for input.

I don't mean to be rude, but you've been posting to this NG for a very long time
now - it's hard to believe you haven't at the very LEAST learned not to use cat
unnecessarily and to quote your variables:

while read a b
    /usr/sanford/ping3 "$a" "$b" >> x.lis &
done < ip_address


script works, but
What I need is put this command:
/usr/sanford/ping3 "$a" "$b" >> x.lis &

in backgroun and go to the next command:

/usr/sanford/ping3 "$a" "$b" >> x.lis &

but I need wait one command execute to the script issue the another.

Relevant Pages