[torqueusers] command line parameters
rsanges at tigem.it
Thu Oct 19 15:41:16 MDT 2006
I have solved by using -v BATCHARG='param1 param2 param3'
and then calling $BATCHARG in the shell script.
This is thanks to your replies and a message of some
Anyway for this simple cases backward compatibility
with SGE is not really mandatory, but it would probably
be good to have at same place same FAQs about these
issues because the documentation seems a little
bit poor and the mailing list is not searchable
.....just 2 cents from a newbie :)
Garrick Staples wrote:
> On Thu, Oct 19, 2006 at 01:52:12PM -0400, Troy Baer alleged:
>> On Thu, 2006-10-19 at 16:40 +0100, Craig Macdonald wrote:
>>>>> In the past I have been using this kind of syntax
>>>>> with SGE but actually it seems not to be possible
>>>>> in TORQUE.
>>>> Arguments aren't in the Batch Services specification, <snip>
>>> Yes, according to
>>> I presume.
>>> I just downloaded SGE and checked the qsub man page - command line
>>> arguments are passed to the script.
>>> Surely this would be fairly straightforward to provide? Take a copy the
>>> remaining contents of argv and pass when the script is run? A clunky
>>> option would be for qsub to put the args in a specially-names environment
>>> variable for the purposes of pbs_server. The pbs_mom would know how to
>>> process this specially named env variable.
>>> As current qsub wont accept any parameters after the job file anyway this
>>> is a backwardly compatable change. It has the added bonus of minimising
>>> any user noticable incompatabilities between SGE and Torque.
>> A potential problem with this is that there are three different shell
>> startup options in TORQUE (--enable-shell-pipe [default], --disable-
>> shell-pipe, and --enable-shell-use-argv), and I'm not sure that this
>> feature could be made to work with all three of them without some
>> seriously ugly hacks.f them without some ugly hacks.
> Another problem is that globs won't necessarily work the way people
> torqueusers mailing list
> torqueusers at supercluster.org
More information about the torqueusers