Infosatepg.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 1: | Zeile 1: | ||
− | + | #!/bin/sh | |
− | #!/bin/sh | + | # |
− | # | + | # infosatepg.sh - v.0.1 |
− | # infosatepg.sh - v.0.1 | + | # |
− | # | + | # add this line to your [[commands.conf]]: |
− | # add this line to your commands.conf: | + | # folgende zeile in die [[commands.conf]] eintragen: |
− | # folgende zeile in die commands.conf eintragen: | + | # |
− | # | + | # Run infosatepg : /usr/local/bin/infosatepg.sh |
− | # Run infosatepg : /usr/local/bin/infosatepg.sh | + | |
− | + | # CONFIG START | |
− | # CONFIG START | + | INFOSAT_OPT="-c VIVA" # Options |
− | + | # CONFIG END | |
− | # CONFIG END | + | |
− | + | PATH=$PATH:/usr/local/bin | |
− | PATH=$PATH:/usr/local/bin | + | |
− | + | test "$(ps axc|awk "{if (\$5==\"infosatepg\") print \$1}")" && { | |
− | test "$(ps axc|awk "{if (\$5==\"infosatepg\") print \$1}")" && { | + | echo 'infosatepg is always running ?' |
− | + | exit 1 | |
− | + | } | |
− | } | + | |
− | + | at now <<EOF | |
− | at now <<EOF | + | cd $SOURCEDIR/infosatepg |
− | cd $SOURCEDIR/infosatepg | + | find received_data -type f -exec rm \{} \; |
− | find received_data -type f -exec rm \{} \; | + | ./infosatepg ${INFOSAT_OPT} |
− | ./infosatepg ${INFOSAT_OPT} | + | EOF |
− | EOF | + | |
− | + | ||
[[Kategorie:Scripts]] | [[Kategorie:Scripts]] |
Version vom 26. Dezember 2004, 12:45 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 # CONFIG START INFOSAT_OPT="-c VIVA" # Options # CONFIG END PATH=$PATH:/usr/local/bin test "$(ps axc|awk "{if (\$5==\"infosatepg\") print \$1}")" && { echo 'infosatepg is always running ?' exit 1 } at now <<EOF cd $SOURCEDIR/infosatepg find received_data -type f -exec rm \{} \; ./infosatepg ${INFOSAT_OPT} EOF