[Toolserver-l] Cronjob starting cronsub

Marcin Cieslak saper at saper.info
Mon Feb 28 14:28:33 UTC 2011


>> Magnus Manske <magnusmanske at googlemail.com> wrote:
> On Mon, Feb 28, 2011 at 11:37 AM, River Tarnell <r.tarnell at ieee.org> wrote:
>> In article <AANLkTiknfjfxQdVgZcJ63Hz90V_xpmKQvu145YJ+Payv at mail.gmail.com>,
>> Magnus Manske  <magnusmanske at googlemail.com> wrote:
>>> OK, so I gave up on starting my perl script using cronsub, which seems
>>> to work only if I give the perl script a parameter (WTF?), and instead
>>> altered it to be run manually, generating a shell script that could
>>> then start via cronsub.
>>
>> This should not be the case.  Please provide the exact script and
>> command line you used and the error message.
>
>> cronsub update_dupes /home/magnus/update_dupes.pl
> qsub: Unknown option
>
> qsub: Unknown option
>
> qsub: Unknown option

This is because you have in your script

#$cmd = "./cron_sql.sh" unless -e $cmd ;

and this is recognized by qsub(1) as the embedded qsub option.

If you change it to:

# $cmd = 

it works again. 

You could have also used -C '##' to change the command prefix to
(for example) two hash signs, but giving options to qsub
does not work with the current cronsub 
(https://jira.toolserver.org/browse/TS-958).

//Marcin





More information about the Toolserver-l mailing list