View Single Post
Posts: 188 | Thanked: 90 times | Joined on Sep 2006
#18
In case anyone still cares...

Originally Posted by aRTee View Post
And then as root, I setup cron:
Code:
/opt/cron/bin/crontab -e
10 6 * * * devel-su user -c 'sh /home/user/bin/synccal.sh'
The proper line should be:
Code:
/opt/cron/bin/crontab -e
10 6 * * * devel-su - user -c 'sh /home/user/bin/synccal.sh'
Note the minus sign, which tells su (or devel-su in this case) to take the regular environmental variables for the user "user".


BTW been absent, will be absent again..
__________________
If I said something useful, please hit the 'Thanks!' link related to that post.