Clipinc.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 27: Zeile 27:
 
esac
 
esac
 
</pre>
 
</pre>
 +
 +
[[Kategorie:Scripts]]

Version vom 20. November 2004, 18:44 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