Clipinc.sh

Aus VDR Wiki
Wechseln zu: Navigation, Suche
#!/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