[torqueusers] qsub patch for job script arguments.

Bas van der Vlies basv at sara.nl
Tue Aug 30 01:11:19 MDT 2011


On 30-08-11 00:46, Michael Jennings wrote:
> On Tuesday, 30 August 2011, at 08:43:09 (+1000),
> Gareth.Williams at csiro.au wrote:
>
>> I like the -- idea, but I think it is more natural to have (or at least allow) -- before the job script:
>> qsub -- run.sh arg1 arg2
>> Before is better to signify that qsub options are complete and the rest of the line is the job script and its options.  After still signifies this but splits the job script and its options unnecessarily.
>
> That doesn't work.  The job script is an argument to qsub.  The
> convention is that -- halts option parsing; the command is supposed to
> ignore anything that comes after --.  If qsub ignores the jobscript
> name, not much will get done.  ;-)
>
> Using -- is by far the simplest and most standard approach IMHO.
> Either that, or just ignore everything after the jobscript name.

I am also for -- solution. As said it is a standard approach and seen a lot 
in other software.

-- 
********************************************************************
*  Bas van der Vlies                    e-mail: basv at sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************


More information about the torqueusers mailing list