Running two copy's of the same bash script
Let's assume the action is ping and that we have two scripts.
Script 1 tells Script2 what to ping.
What I would like is that the Script 1 will tell the script 2 what to ping and than without waiting the script 2 to finish the ping action to send another ping action to the same script2 to another address.
That way I would have two session of the script 2 pinging to two different address.
What I have done so far is that script 1 tells script to where to ping, but script 1 is waiting for script 2 to finish and than send's another address to ping.
Any ideea of how I am supposed to handle those scripts to have certain n address ping'ed in the same time?
just let it fork off,
script2 ip.add.re.ss &
At the first time, I was just about posting and ask more explanation. Than, being a man who likes to serch first through posts, I realize what you mean by fork.
It worked like a charm, thanks for your simple, hellpfull and right to the point answer.
|All times are GMT -5. The time now is 05:04 PM.|