monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Here we have param_set1 = (param1,param2), etc. There are many of these param sets. For each of this param set I would run on Linux Cluster via qsub command.$ perl mycode.pl file1.txt param1 param2 > param_set1.out $ perl mycode.pl file1.txt param3 param4 > param_set3.out $ perl mycode.pl file1.txt param4 param5 > param_set4.out $ cat param_set1.out param_set3.out param_set4.out > final.out
3. Subsequently I would manually submit each param set to the cluster as in shown in step 1 as follows:#!/usr/bin/bash cd ~/some_dir perl mycode.pl $1 $2 > ~/some_out_dir/param_set$1.out
My question is how can I write a Perl script that:$ qsub runcode.sh param1 param2 $ qsub runcode.sh param3 param4 $ qsub runcode.sh param5 param6
|
|---|