Clipinc.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Scripts besser seperat (kopiert sich besser))
 
Zeile 1: Zeile 1:
 +
<pre>
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
<pre>
 
 
# sample script for clipinc
 
# sample script for clipinc
 
#
 
#

Version vom 11. November 2004, 14:49 Uhr

#!/bin/sh
#
# sample script for clipinc
#
# need: atd

case "${1}" in
    start)
        test -s "${2}/recinfo.conf" || {
            echo "--------------------------"
            echo  "recinfo.conf not found..."
            echo "--------------------------"
            exit 1
        }
        test -d /etc/vdr/scripts/clipinc || {
            echo "--------------------------"
            echo "/etc/vdr/scripts/clipinc not found..."
            echo "--------------------------"
            exit 1
        }
        at now <<EOF
        cd /etc/vdr/scripts/clipinc
        ./clipinc.pl "${2}"
EOF
        ;;
esac