Unable to create unix socket when running in crontab

*nix specific usage questions
amit_online
New Cone
New Cone
Posts: 2
Joined: 21 Jan 2010 16:09

Unable to create unix socket when running in crontab

Postby amit_online » 21 Jan 2010 16:27

I have a php script which runs from the command line and uses vlc to get radio station info. It uses a local unix socket to communicate with the calling php file. Everything runs fine if I run it from the command prompt. But if I run it as crontab job then its unable to create the local unix socket and crashes.

Any solutions are welcome.

Thanks in advance.

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

Re: Unable to create unix socket when running in crontab

Postby Rémi Denis-Courmont » 21 Jan 2010 17:09

Usually, this means you are not using the same user's crontab, or some environment variable is missing, or you use the RC interface (which requires a TTY).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Unable to create unix socket when running in crontab

Postby xtophe » 21 Jan 2010 18:43

--rc-fake-tty if you're in the last case
Xtophe

amit_online
New Cone
New Cone
Posts: 2
Joined: 21 Jan 2010 16:09

Re: Unable to create unix socket when running in crontab

Postby amit_online » 22 Jan 2010 06:09

That is right. I am running vlc with rc --rc-unix . Is there a way to run this in cron mode?

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

Re: Unable to create unix socket when running in crontab

Postby Rémi Denis-Courmont » 23 Jan 2010 09:30

Are you trying to play Jeopardy! ? Xtophe just gave the answer.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


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

Who is online

Users browsing this forum: No registered users and 22 guests