AFS root using acrontab

Hi,

I have a program that uses root libraries and I would like to execute it in a lxplus AFS automatically using acrontab.

The program is working when I log in since it is loading the enviroment variables for ROOT and shared libraries.

But when I run it using acrontab I get the next result:

…/bin/mMRead: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory

Any idea?

This means that you are not setting the env variables when running with cron.

Rene