Infosatepg.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 24: | Zeile 24: | ||
exit 1 | exit 1 | ||
} | } | ||
− | |||
− | |||
mkdir -p "${INFOSAT_OUT}" | mkdir -p "${INFOSAT_OUT}" |
Version vom 27. Dezember 2004, 11:46 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 # # Edit the hoerzu2vdr.conf: # # - TvUrlinfosat = /vdr/infosatepg-0.0.2/received_data/infosat_#DAY#_#MONTH#; # + TvUrlinfosat = /tmp/received_data/infosat_#DAY#_#MONTH#; # CONFIG START INFOSAT_OPT="-c VIVA" # Options INFOSAT_OUT="/tmp/received_data" # Store infosatepg in... # CONFIG END PATH=$PATH:/usr/local/bin test "$(ps axc|awk "{if (\$5==\"infosatepg\") print \$1}")" && { echo 'infosatepg is always running ?' exit 1 } mkdir -p "${INFOSAT_OUT}" at now <<EOF infosatepg ${INFOSAT_OPT} -o "${INFOSAT_OUT}" EOF