[Toolserver-l] Job scheduling a python bot script

Dr. Trigon dr.trigon at surfeu.ch
Sat Jan 8 01:32:57 UTC 2011


Hello all

I'm currently trying to get 'Job scheduling' working form my modified
pywikipedia bot python script. According to
https://wiki.toolserver.org/view/Job_scheduling (Converting an existing
cron job to use the
scheduler) I tried to convert

=================

0 2 * * * nice -n +15 python /home/drtrigon/pywikipedia/runbotrun.py -cron

0 0 1,16 * * nice -n +15 python /home/drtrigon/pywikipedia/runbotrun.py
-skip_clean_user_sandbox -compress_history:[] -cron

0 6 * * * nice -n +15 python /home/drtrigon/pywikipedia/subster_beta.py
2>> /home/drtrigon/public_html/DrTrigonBot/subster.html

=================

to

=================

0 2 * * * cronsub -s mainbot $HOME/pywikipedia/runbotrun.py -cron

0 0 1,16 * * cronsub -s compbot $HOME/pywikipedia/runbotrun.py
-skip_clean_user_sandbox -compress_history:[] -cron

0 6 * * * cronsub -s substerbot $HOME/pywikipedia/subster_beta.py 2>>
$HOME/public_html/DrTrigonBot/subster.html

=================

AND I tried to run to first of those jobs with 'qsub', by:

  qsub $HOME/pywikipedia/runbotrun.py -cron

BUT this leads to the follwing output in my $HOME:

=================

/sge62/default/spool/wolfsbane/job_scripts/117222: ^JThis bot is the
general DrTrigonBot caller. It runs all the different sub tasks,^Jthat
DrTrigonBot does.^J^J...^J: not found
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
/sge62/default/spool/wolfsbane/job_scripts/117222: from: not found
logname: extra operand `='
Try `logname --help' for more information.
/sge62/default/spool/wolfsbane/job_scripts/117222: logger_tmsp: not found
/sge62/default/spool/wolfsbane/job_scripts/117222: syntax error at line
65: `(' unexpected

=================

... and this is the point were I am getting lost... this message
looks VERY strange to me, since I'm not using an X server (explicitely)
and I have no clue what the 'error/import.c' means there.....

Please can somebody give me a hint? Any ideas are welcome!!

Thanks a lot and greetings

Dr. Trigon

ps: by the way; thanks for the good server maintenance and all that
stuff!!




More information about the Toolserver-l mailing list