Infosatepg.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 7: Zeile 7:
 
  #
 
  #
 
  # Run infosatepg : /usr/local/bin/infosatepg.sh
 
  # 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
 
  # CONFIG START
   INFOSAT_OPT="-c VIVA" # Options
+
   INFOSAT_OPT="-c VIVA"           # Options
 +
  INFOSAT_OUT="/tmp/received_data" # Store infosatepg in...
 
  # CONFIG END
 
  # CONFIG END
 
   
 
   
Zeile 18: Zeile 24:
 
     exit 1
 
     exit 1
 
  }
 
  }
 +
 +
PATH=$PATH:/usr/local/bin
 +
 +
mkdir -p "${INFOSAT_OUT}"
 
   
 
   
 
  at now <<EOF
 
  at now <<EOF
  cd $SOURCEDIR/infosatepg
+
  infosatepg ${INFOSAT_OPT} -o "${INFOSAT_OUT}"
find received_data -type f -exec rm \{} \;
+
./infosatepg ${INFOSAT_OPT}
+
 
  EOF
 
  EOF
  
 
[[Kategorie:Scripts]]
 
[[Kategorie:Scripts]]

Version vom 27. Dezember 2004, 11:43 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
}

PATH=$PATH:/usr/local/bin

mkdir -p "${INFOSAT_OUT}"

at now <<EOF
infosatepg ${INFOSAT_OPT} -o "${INFOSAT_OUT}"
EOF