[GE users] Passing parameters to job script

Sean Davis sdavis2 at mail.nih.gov
Thu Jul 10 22:10:48 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. ]

On Thu, Jul 10, 2008 at 4:53 PM, Filipe Brandenburger
<filipe.brandenburger at idilia.com> wrote:
> 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:
>
> #!/bin/sh
> #$ -pe smp 4-12
> command ${1+"$@"}
>
>
> The shell will substitute ${1+"$@"} by the parameters passed to the script.

Perfect.  Thanks!

Sean

---------------------------------------------------------------------
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