in reply to Re^3: Twig in a crontab?
in thread Twig in a crontab?

That may be true for Linux or OS-X, but not for Solaris, which is what I'm working on.

Replies are listed 'Best First'.
Re^5: Twig in a crontab?
by MidLifeXis (Monsignor) on Jan 31, 2008 at 18:03 UTC

    Then call a script instead.

    #!/bin/ksh LD_LIBRARY_PATH=.... export LD_LIBRARY_PATH cd /dir/where/you/want/to/start exec commandtorun param1 param2 ...

    Update: Added exec - saves one process in the process table.

    and call it from your crontab instead of the command you are calling right now.

    You can also do on the crontab line

    0 0 * * * LD_LIBRARY_PATH=foobar commandtorun param1 param2

    Also make certain that you have your CWD properly accounted for from cron. I will often do a cd /dir/to/run/from && command... as part of my cron line.

    --MidLifeXis