Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] AW: no shutdown while encoding



Hallo,

> some time ago I read a posting which included a shutdownscript that checks
> whetther there is an encoding process running or not and cancels shutdown
> if it found. Could someone mail this script, please.

Should be something like this :

#!/bin/sh

[ `ps -ef | grep -e "/wait2enc.sh"| grep -c -v grep` -ne 0 ] && if [ -s
/usr/local/src/VDRtmp/JobQ ]; then
  echo vdr2divx Job running - VDR is not stopped !!
  exit 0
fi

[ `ps -ef | grep -e "/tosvcd"| grep -c -v grep` -ne 0 ] || [ `ps -ef |
grep -e "/svcd.sh"| grep -c -v grep` -ne 0 ] && if [ -s
/usr/local/src/VDRtmp/toconvert.txt ]; then
  echo tosvcd Job running - VDR is not stopped !!
  exit 0
fi

shutdown -h now

I dont have my script from home here but I think this should work. If not i
will send you my script from home.

You will have to change the path of JobQ and tocenvert.txt if they are not
there.
And yes I know it can bee done smaller and more beautifull ;)

Greetings
Christian




-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index