Infosatepg.sh

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

Version vom 22. November 2004, 20:04 Uhr

#!/bin/sh
#
# infosatepg.sh - v.0.1
#
# add this line to your commands.conf:
# folgende zeile in die commands.conf eintragen:
#
# Run infosatepg : /usr/local/bin/infosatepg.sh

test "$(ps axc|awk "{if (\$5==\"infosatepg\") print \$1}")" && {
    echo 'infosatepg is always running ?'
    exit 1
}

at now <<EOF
cd $SOURCEDIR/infosatepg
/usr/local/bin/svdrpsend.pl CHAN VIVA
find received_data -type f -exec rm \{} \;
./infosatepg
EOF