in reply to Re^4: Twig in a crontab?
in thread Twig in a crontab?
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
|
---|