Mailing List archive

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

[vdr] Re: shutdown-script



On 30 Mar 2003, Andreas Reichel (AR) wrote:

AR> Hi Sergei,
AR>
AR> you are completly right, i miss every the timer as described in your
AR> scenario -- but i fear, i miss a worse case too: if the shutdown-flag is
AR> written after the time of user-inactivity is reached, there could be any
AR> program of CMD_LST, which denies the shutdown. if i react some times
AR> later (because it's the next morning and i want to watch the latest
AR> news), then the flag is still there -- and the cron-job shuts down the
AR> computer regardless the activity, that happened in the meantime.
AR>
AR> what i'm lokking for is any improvement, to honor user-activities after
AR> the flag is already set but still not handled. any hints or suggestions?


Why don't you just pass the script per -s option to vdr. It will be called
again after the inactivity time is passed again.

the script should look like this:

 1. check if something important is running (your CMD_LST). If yes, exit.
 2. If not, prepare your pc for the next timer (nvram-wakeup, wake-on-lan, ...)
 3. shutdown.

c ya
        Sergei
-- 
--------------------------------------------------------------------  -?)
         eMail:       Sergei.Haller@math.uni-giessen.de               /\\
-------------------------------------------------------------------- _\_V
Be careful of reading health books, you might die of a misprint.
                -- Mark Twain



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



Home | Main Index | Thread Index