Re: CINT Script doesn't execute in crontab

From: Roland Kuhn <rkuhn_at_e18.physik.tu-muenchen.de>
Date: Tue, 22 Mar 2005 11:13:35 +0100


Hi Ivan!

On Mar 22, 2005, at 3:48 AM, Ivan Koji Koga wrote:

> Dear all,
> I made a script that run in cint and i want it to run with crontab.
> Then i made a shellscript to run it.
> The shellscript code is:
> /testesROOT/execroot.sh
> -------------------------------------------
> #!/bin/bash
> /usr/local/root/bin/root -q -l -n -b /testesROOT/pipesbr_insere.C
> -------------------------------------------
>
> that's my Crontab
> -----------------------------------------
> 0-59/1 * * * * /testesROOT/execroot.sh
> -----------------------------------------
> I tested other commands in the execroot.sh and only the root cint
> script isn't running with Crontab. When i run it by hand it works.
> Can anyone help me?

cron usually doesn't have any of the needed environment variables set properly. You should add something like

export ROOTSYS=<whereever>
PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib

to the script before calling ROOT.

Ciao,

                                        Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str. 85747 Garching
Telefon 089/289-12592; Telefax 089/289-12570
--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.

Received on Tue Mar 22 2005 - 11:19:45 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET