Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Pb : svdrp, script and crontab



Hi,

I've tried to activate the environment like :
20,40,60 * * * * * /bin/su - root -c "/path/to/myscript"

but the script stops after running
/bin/cat /video0/epg.csn.data | /usr/local/bin/loadepg.pl

and seems to get stuck here. The last line of syslog is:
"connect from 127.0.0.1 port 32875 accepted"

Do you have any idea ?
Karim.



myscript
====================================================================
#!/bin/sh
echo Tuning to EPG Channel
/usr/local/src/vdr/svdrpsend.pl CHAN 400
sleep 3
echo Downloading datas
cd /usr/local/src/mhwepg-0.4
./mhwepg -s S19.2E -e equiv.csn -o /video0/epg.csn.data
echo Transfering datas to VDR via svdrp
/bin/cat /video0/epg.csn.data | /usr/local/bin/loadepg.pl
echo All tasks ended.
====================================================================





also use absolute paths with commands "cat" -> "/bin/cat"

if this doesnt help, try to change crontab from
* * * * *  /path/to/script
   into
* * * * * /bin/su - root -c "/path/to/script"

so the environment is to be activated

uwe





--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as
subject.





-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index