![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parallel SSH execution and a single shell to control them all | iBot | UNIX and Linux RSS News | 0 | 10-30-2008 04:50 AM |
| parallel processing | audippa | Shell Programming and Scripting | 3 | 03-01-2007 12:01 PM |
| Make : parallel execution | suman_jakkula | AIX | 0 | 03-14-2006 03:33 AM |
| parallel environment in aix | mzzt | AIX | 0 | 01-09-2006 03:32 PM |
| Parallel Execution | RishiPahuja | Shell Programming and Scripting | 4 | 05-10-2005 03:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Parallel Job Execution
Hi All,
At present I am using a UNIX Script which is running a set of JOBS. These JOBS are to be repeated for 20 times, means the same set of JOBS are repeated by just passing different arguments (From 1 to 20). Is there any way by which I can execute them parallel? At present its all sequential process of executing the same set of JOBS one at a time. |
|
||||
|
Many thanks for this help .
I have done these changes and it worked. Only thing which I have noticed that after I call papallel execution as script.sh arg1 & script.sh arg2 & script.sh arg3 & script.sh arg4 & The prompt is not coming in UNIX (KSH Prompt) and I have to explicitly hit an Enter key. May be since I am executing the parallel processes and hence the issue. Is there any way by which I can return the prompt after all the parallel executions? |
|
||||
|
Ideally, when we run a job in the background, the shell should immediately return a PID of the job and the command prompt should return to accept another command. If the script immediately returns the output to the terminal, you might need to hit enter to come back to the prompt. To avoid this, you can redirect the o/p and std error to the appropriate files. ex Code:
script.sh arg4 > outfile 2>/dev/null & cheers, Devaraj Takhellambam |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|