[streaming] Crontab and VLC

Nils-Odd Solberg nils.o.solberg at hiof.no
Thu Oct 30 17:47:14 CET 2003


hi,
i have made two shellscript, one to start vlc and one to stop vlc. both  
works fine and nice from the commandline, but when trying to run it  
from an cronjob it is just the stop-script that works. the start-script  
stops with an displayerror, but this job should not need any display.  
this is very strange! i give the full path and everyting!

below is the start-script

#!/bin/sh

echo $DISPLAY > /tmp/debug.txt
echo "1" >> /tmp/debug.txt

export PATH="$PATH:/usr/local/bin"

/usr/local/bin/vlc  
v4l:/dev/video0:norm=pal:size=704x576:adev=/dev/audio:audio=1 --sout  
'#duplicate{dst="transcode{vcodec=mp4v,acodec=mpga,vb=4000,ab=256,vt=800 
000,keyint=80}:std{access=udp,mux=ts,url=224.1.2.3: 
20000}",dst="transcode{vcodec=mp4v,acodec=mpga,vb=500,ab=128,vt=800000,k 
eyint=80}:std{access=http,mux=ts,url=rod3.hiof.no:8080}"}' --ttl 15 &>  
/tmp/error.txt && echo "2" >> /tmp/debug.txt

the error.txt file contains the following;

VideoLAN Client 0.6.2 Trevelyan

Gtk-WARNING **: cannot open display:

it is, as i have said before, very strange. vlc and /usr/local/bin/vlc  
directly from the commandline works well. gvlc on the other hand result  
in the same error. but i really give the full path, so it should not be  
a problem, but it is :(

anyone? please..

nils-odd
--
nils.o.solberg at hiof.no
http://www.ia-stud.hiof.no/~nilsosol/

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the streaming mailing list