Diskussion:Rwrapper.sh
Aus VDR Wiki
Version vom 26. Dezember 2006, 20:26 Uhr von 84.169.253.111 (Diskussion)
Dieses "Killen, fals die aufnahme abgebrochen wird" ist ja nett, leider wird für jede Aufnahme ein neuer watcher thread gestartet, der jeweils alle noad Instanzen überwacht... Das sollte man evtl anders bauen.84.169.253.111 20:26, 26. Dez 2006 (CET)
Bei den Examples sollte man evt. aus der INSTALL von VDR die Sachen 1:1 übernehmen. (Beschreibung im Kopf)
Da steht ja auch im Detail, was was macht, nun zur Frage.
Gibt es wo die INSTALL schon fertig übersetzt, finde nur das MANUAL?
Executing commands before and after a recording: ------------------------------------------------ You can use the '-r' option to define a program or script that gets called before and after a recording is performed, and after an editing process has finished. The program will be called with two string parameters. The first parameter is one of before if this is *before* a recording starts after if this is *after* a recording has finished edited if this is after a recording has been *edited* and the second parameter contains the full name of the recording's directory (which may not yet exists at that moment in the "before" case). In the "edited" case it will be the name of the edited version. Within this program you can do anything you would like to do before and/or after a recording or after an editing process. However, the program must return as soon as possible, because otherwise it will block further execution of VDR. Be especially careful to make sure the program returns before the watchdog timeout you may have set up with the '-w' option! If the operation you want to perform will take longer, you will have to run it as a background job. An example script for use with the '-r' option could look like this: #!/bin/sh case "$1" in before) echo "Before recording $2" ;; after) echo "After recording $2" ;; edited) echo "Edited recording $2" ;; *) echo "ERROR: unknown state: $1" ;; esac
--Anonymous 17:55, 22. Apr 2006 (CEST)