Setting Variables for cron

2007-12-25 1:16:00

Is there a way to get values to be set for executables run in cron?

I added the correct PATH and LD_LIBRARY_PATH in /etc/profile but for
some reason when cron runs it doesn't use these settings.

now if an executable runs and needs a library that doesn't reside in
standard place then it fails.

I could symlink the failing libary into one that is used by default but
I shouldn't be symlinking all over the box.

Is there a way to set PATH and LIBRARY information that cron will use
when running?

Thanks

Comments

Got something to say?

You must be logged in to post a comment.