![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Is it possible ????
Is it possible to run 2 scripts in parallel thru shell script ?????
e.g. main1.sh and main2.sh needs to run parallel. How can i achive this ????? Any suggestions .... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
it can be done by using FORK
|
|
#3
|
||||
|
||||
|
Hi Arunkumar,
Thanx a lot...can you give me sample how to run main1.sh and main2.sh thru fork..... |
|
#4
|
||||
|
||||
|
For simple things use this:
./script1.sh & ./script2.sh & Thats all ! |
|
#5
|
|||
|
|||
|
AFIK the & will do a background run ..Not a parallel run .. You have to use fork .. to run the two code paralelly ..
|
|
#6
|
||||
|
||||
|
yep joerg , by giving & it will run the scripts in Back ground..
by query is to run parallel, not one afteranother. Arunkumar, Can u elaborate how can i use fork to run two scripts in parallel ...... |
|
#7
|
|||
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|