Quote:
Originally Posted by
manas_ranjan
3rd------parallel means , both scripts needs to start simultaneously,
let a.sh & , this will give the pid and run in back ground...and then b.sh will run ....
but i need both scripts to run at same time.
If you have a single processor, there is no such thing as starting scripts "simultaneously". One will be started first, then the other.
Actually "a.sh &" and "b.sh &" will run both scripts concurrently. But one will start first, then the other. To verify, try running 2 scripts in the "background" that each have a 10 second sleep in them. You will find that they will complete in less than 20 seconds.
Again, how do you distinguish parallel from background?