You could always try replacing the back-ticks with $(command).
So rather than:
but that will only work inside bash (I think). So...
You can do a complex command in the crontab file if you call bash followed by what you want to run (remember, the command that cron runs is just that - the direct command, it's not running inside a bash shell). So you could try something like this as the line in the crontab file:
0 0 * * 1-5 /bin/bash -c "cmd1; cmd2; cmd3"
Without looking precisely at what's going on, I'm unable to make any further suggestions really.
Edited by mixt (Tue 07-Feb-12 21:40:56)