FreeBSD crontab problem

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
TayfuN
Blank Cone
Blank Cone
Posts: 11
Joined: 28 Nov 2008 17:18

FreeBSD crontab problem

Postby TayfuN » 17 Jul 2009 23:42

I'm trying to check if the vlc streaming is working or not with crontab and shell script:

#!/bin/sh
#
# Restart VLC IF died
#
if $( /usr/bin/sockstat -4 -l | /usr/bin/grep -q ":8081" ); then
echo "runing"
else
/usr/local/bin/cvlc --quiet -I dummy ....
fi 2> /dev/null 1> /dev/null &

But vlc don't starts without any erorrs in cron log. Maybe, someone can help me ? In Linux all works normally. I think, this problem with, that vlc need's somewhere to show output. Also I tried /usr/local/bin/vlc and /usr/local/bin/vlc-wrapper.

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

Re: FreeBSD crontab problem

Postby Rémi Denis-Courmont » 18 Jul 2009 10:50

cvlc exits if stdin is closed. Use the normal vlc.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

TayfuN
Blank Cone
Blank Cone
Posts: 11
Joined: 28 Nov 2008 17:18

Re: FreeBSD crontab problem

Postby TayfuN » 18 Jul 2009 13:03

The same, if I run it from command line like: sh /etc/vlc.sh, all works, but cron can't run proccess, I know, that cron runing this proccess from log's, but nothing more.

TayfuN
Blank Cone
Blank Cone
Posts: 11
Joined: 28 Nov 2008 17:18

Re: FreeBSD crontab problem

Postby TayfuN » 18 Jul 2009 13:44

Oopps... All works as you said :D Sorry :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests