Infosatepg.sh

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