Page 1 of 1

crontab Problems

Posted: 28 May 2010 09:33
by COKEDUDE
I have 3 video's I'm trying to play as a playlist at 8 am. I've checked in the terminal and as a regular script that this works fine. Right now I'm just trying to get it working so I'm using wildcards for the time and day. I tried it with sourcing and without sourcing in the crontab. Then I tried to run it as a regular script with no luck. I've checked that my script runs fine in the terminal. I also did this with sourcing and without sourcing. I really don't understand what I'm doing wrong so any help would be appreciated.

Code: Select all

* * * * * vlc -L /home/vids/vid1 /home/vids/vid2 /home/vids/vid3 * * * * * /home/bob/Desktop/yo * * * * * . /home/bob/Desktop/yo
I have also checked the /etc/cron.deny and /etc/cron.allow and there are no problems in those files.

I set up a simple echo script so I know its actually doing its job.

Code: Select all

* * * * * echo hi >> /home/bob/Desktop/come

Re: crontab Problems

Posted: 29 May 2010 09:12
by Rémi Denis-Courmont
You need to expose your DISPLAY to the cron tab entry, otherwise VLC will run in text mode. There may be other similar issues.

Re: crontab Problems

Posted: 30 May 2010 07:42
by COKEDUDE
You need to expose your DISPLAY to the cron tab entry, otherwise VLC will run in text mode. There may be other similar issues.
How do I do that?

Re: crontab Problems

Posted: 05 Jun 2010 02:51
by COKEDUDE
You need to expose your DISPLAY to the cron tab entry, otherwise VLC will run in text mode. There may be other similar issues.
Could anyone explain how to do that please?

Re: crontab Problems

Posted: 05 Jun 2010 10:23
by Rémi Denis-Courmont
You need to set the DISPLAY environment variable correctly. Some other variables may be needed.

Re: crontab Problems

Posted: 08 Jun 2010 21:53
by COKEDUDE
You need to set the DISPLAY environment variable correctly. Some other variables may be needed.
I don't know how to do that. I have searched google for a long long time with no luck. Could you explain how to do that please?