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 config.pl:
#
# - our $infosaturl="/video/received_data";
# + our $infosaturl="/tmp/received_data";

# 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