Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: runvdr problem
dbc@free.fr wrote:
>
> Hi all,
>
> I'm starting to get mad !
>
> My runvdr script does'nt work anymore.
> I made a lighter version (to avoid reload the DVB driver every 30sec)
> to test, but each time it fails the same way. Basically it doesn't accept the -P
> -w etc.
>
> [root@localhost VDR]# ./testrunvdr
> /usr/local/src/VDR/vdr -w 60 -s /video/vdrshutdown -P dvd -P vcd -P'mp3 -m
> /video/mount.sh' -Pstatus -p'mplayer -M /video/mplayer.sh'
> su: invalid option -- w
> Pour en savoir davantage, faites: « su --help ».
>
> Here is my script
>
> #!/bin/sh
> DVBDIR="../DVB/driver"
> VDRPRG="/usr/local/src/VDR/vdr"
> VDRCMD="$VDRPRG -w 60 -s /video/vdrshutdown -P dvd -P vcd -P'mp3 -m
> /video/mount.sh' -Pstatus -P'mplayer -M /video/mplayer.sh'"
>
> echo $VDRCMD
>
> export DVDCSS_METHOD=key
>
> LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`"
> KILL="/usr/bin/killall -q -TERM"
>
> # Load driver if it hasn't been loaded already:
> if [ $LSMOD -eq 0 ] ; then
> (cd $DVBDIR; make insmod)
> fi
>
> while (true) do
> su -c $VDRCMD
This line should be
su -c "$VDRCMD"
> if test $? -eq 0; then exit; fi
> date
> echo "VDR est redémarré. Si cela ne marche pas, le driver est planté.
> Eteindre."
> $KILL $VDRPRG
> sleep 10
> echo " vdr est arrété. le driver, je ne sais pas. Demerdieren Sie sich."
> date
> done
>
> What did I get wrong ???
You left out the quotes (see the original 'runvdr' script).
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index