[GE users] Passing parameters to job script

Michael van Elst mlelstv at serpens.de
Thu Jul 10 22:10:42 BST 2008

On Thu, Jul 10, 2008 at 04:50:59PM -0400, Sean Davis wrote:
> And then do something like:
> qsub jobscript.sh -b 2 -c 3 -d 4 fname
> and expect that those arguments can be passed into the command?

You can pass environment variables, i.e.

   qsub jobscript.sh -v argv="-b 2 -c 3 -d 4 fname"

and in the jobscript.sh use:

   command $argv

This works fine unless you require arguments that contain whitespace.

                                Michael van Elst
Internet: mlelstv at serpens.de
                                "A potential Snark may lurk in every tree."

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list