Clipinc.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 1: | Zeile 1: | ||
− | + | #!/bin/sh | |
− | #!/bin/sh | + | # |
− | # | + | # clipinc.sh - v.0.1 |
− | # clipinc.sh - v.0.1 | + | # |
− | # | + | # add this lines to your [[reccmds.conf]]: |
− | # add this lines to your reccmds.conf: | + | # folgende zeilen in die [[reccmds.conf]] eintragen: |
− | # folgende zeilen in die reccmds.conf eintragen: | + | # |
− | # | + | # Start clipinc : /usr/local/bin/clipinc.sh -start |
− | # Start clipinc : /usr/local/bin/clipinc.sh -start | + | # Stop clipinc? : /usr/local/bin/clipinc.sh -kill |
− | # Stop clipinc? : /usr/local/bin/clipinc.sh -kill | + | |
− | + | case "${1}" in | |
− | case "${1}" in | + | -start) |
− | + | msg() { | |
− | + | echo -e "-----------\n${@}\n-----------" | |
− | + | } | |
− | + | ||
− | + | test -s "${2}/recinfo.conf" || { | |
− | + | msg "recinfo.conf not found..." | |
− | + | exit 1 | |
− | + | } | |
− | + | ||
− | + | at now <<EOF | |
− | at now <<EOF | + | clipinc.pl "${2}" |
− | clipinc.pl "${2}" | + | EOF |
− | EOF | + | ;; |
− | + | ||
-kill) | -kill) | ||
− | + | killall vdrcut clipinc.pl | |
− | + | ;; | |
− | esac | + | esac |
− | + | ||
[[Kategorie:Scripts]] | [[Kategorie:Scripts]] |
Version vom 26. Dezember 2004, 12:40 Uhr
#!/bin/sh # # clipinc.sh - v.0.1 # # add this lines to your reccmds.conf: # folgende zeilen in die reccmds.conf eintragen: # # Start clipinc : /usr/local/bin/clipinc.sh -start # Stop clipinc? : /usr/local/bin/clipinc.sh -kill case "${1}" in -start) msg() { echo -e "-----------\n${@}\n-----------" } test -s "${2}/recinfo.conf" || { msg "recinfo.conf not found..." exit 1 } at now <<EOF clipinc.pl "${2}" EOF ;; -kill) killall vdrcut clipinc.pl ;; esac