[GE users] Passing parameters to job script

Filipe Brandenburger filipe.brandenburger at idilia.com
Thu Jul 10 21:53:19 BST 2008

    [ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Sean Davis wrote:
> #!/bin/sh
> #$ -pe smp 4-12
> command
> And then do something like:
> qsub jobscript.sh -b 2 -c 3 -d 4 fname

If you want to pass paramenters, inside the shell script you should use
this syntax:

#$ -pe smp 4-12
command ${1+"$@"}

The shell will substitute ${1+"$@"} by the parameters passed to the script.


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