On 08/03/12 09:32, Simon Kågedal Reimer wrote:
> Ah, sorry, that didn't work - can't run qsub directly from cronie
> since we need to set some environment variables etc.
Just
SGE_ROOT=/sge62 qsub $HOME/do_fififi.sh
would work.
But changing qcronsub is indeed appropiate.
> Suggesting instead this patch to qcronsub (patched version at
> /home/skagedal/local/bin/qcronsub2):
>
> --- /sge62/bin/sol-amd64/qcronsub 2012-03-01 00:24:30.297917000 +0000
> +++ ./qcronsub2 2012-03-08 08:27:14.098206000 +0000
> @@ -13,7 +13,7 @@
> fi
> if [ -s ${MYTEMPFILE} ]
> then
> - cat ${MYTEMPFILE}
> + cat ${MYTEMPFILE} > /dev/stderr
> fi
> rm -f ${MYTEMPFILE}
> exit "${RC}"
Or just
+ cat ${MYTEMPFILE} >&2
BTW, why is qcronsub at /sge62/bin/sol-amd64/qcronsub ?
Wouldn't /opt/local/bin/qcronsub (like cronsub) be more appropiate?
_______________________________________________
Toolserver-l mailing list ([email protected])
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list:
https://wiki.toolserver.org/view/Mailing_list_etiquette