sousuffer has asked for the wisdom of the Perl Monks concerning the following question:
Ideally, I would also like to grab the exit code or output for each instance, since piping the output to a file would add an extra scanning step to ensure that all processes completed successfully - but if I have to do this I will.
The below code runs the processes sequentially, producing the result and an ".out" file with the status of the run:
The goal would be primarily to start the second run immediately after starting the first one, etc. The secondary goal would be to collect the exit codes in an array as they complete. Any help would be greatly appreciated. Thank you very much in advance for your help.for my $file (@files) { my $fastqc_script = "$fastqc_folder/fastqc $input_folder/$file + --outdir=$fastqc_output_folder > $fastqc_output_folder/$file.out"; `$fastqc_script`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execution of parallel unix system commands
by atcroft (Abbot) on Jan 16, 2014 at 18:05 UTC | |
|
Re: Execution of parallel unix system commands
by ww (Archbishop) on Jan 16, 2014 at 17:16 UTC | |
|
Re: Execution of parallel unix system commands
by zentara (Cardinal) on Jan 17, 2014 at 12:52 UTC | |
|
Re: Execution of parallel unix system commands
by Anonymous Monk on Jan 16, 2014 at 17:06 UTC |