AW: [vdr] execute command after vdr starts

2006-09-07 Thread martin
Just add option -r script.sh #!/bin/sh case $1 in before) ;; after) echo After recording $2 /usr/local/bin/startnoad.sh $2 ;; edited) echo Edited recording $2 ;; *) echo ERROR: unknown

Re: AW: [vdr] execute command after vdr starts

2006-09-07 Thread C.Y.M
martin wrote: Just add option -r script.sh #!/bin/sh case $1 in before) ;; after) echo After recording $2 /usr/local/bin/startnoad.sh $2 ;; edited) echo Edited recording $2 ;; *)

Re: AW: [vdr] execute command after vdr starts

2006-09-07 Thread Udo Richter
C.Y.M wrote: Thanks for your replay, but I was looking for a switch that would make vdr run a script right after vdr starts up. If you want to start a program together with VDR, why don't you put it into your runvdr script? Cheers, Udo ___

Re: AW: [vdr] execute command after vdr starts

2006-09-07 Thread C.Y.M
Udo Richter wrote: C.Y.M wrote: Thanks for your replay, but I was looking for a switch that would make vdr run a script right after vdr starts up. If you want to start a program together with VDR, why don't you put it into your runvdr script? Because in the runvdr script, the vdr

Re: AW: [vdr] execute command after vdr starts

2006-09-07 Thread Udo Richter
C.Y.M wrote: Yes, I like the idea of backgrounding VDR using and then using 'wait $PID'. Is that the method you use? I've been trying to find the best way to do this. Could you give me an example? :) Something like that. This is a snippet of my overgrown runvdr script: # Run VDR eval