crontab Problems

*nix specific usage questions
COKEDUDE
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Dec 2006 06:56

crontab Problems

Postby COKEDUDE » 28 May 2010 09:33

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15258
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: crontab Problems

Postby Rémi Denis-Courmont » 29 May 2010 09:12

You need to expose your DISPLAY to the cron tab entry, otherwise VLC will run in text mode. There may be other similar issues.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

COKEDUDE
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Dec 2006 06:56

Re: crontab Problems

Postby COKEDUDE » 30 May 2010 07:42

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?

COKEDUDE
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Dec 2006 06:56

Re: crontab Problems

Postby COKEDUDE » 05 Jun 2010 02:51

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15258
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: crontab Problems

Postby Rémi Denis-Courmont » 05 Jun 2010 10:23

You need to set the DISPLAY environment variable correctly. Some other variables may be needed.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

COKEDUDE
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Dec 2006 06:56

Re: crontab Problems

Postby COKEDUDE » 08 Jun 2010 21:53

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?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests