[mythtv-users] Anyone using in crontab?

Stef Coene stef.coene at docum.org
Mon Dec 24 09:49:33 UTC 2007


On Monday 24 December 2007, Happy Harry wrote:
> You should have recieved an e-mail from the Cron-deamon with the
> output of the job. If that isn't working, you can try adding ">
> /tmp/thiscronjob.log 2>&1" after the command in the crontab. This way
> stdout (standard out) and stderr (standard error) will be logged in
> /tmp/thiscronjob.log
An other trick is doing
su - -c "your command"
in the crontab.  The su commando will give you a full login shell.
If you want to run something as use mythtv you can do the same by adding to 
the cron of user root
su - mythtv -c "your command"


Stef


More information about the mythtv-users mailing list