Mailing List archive

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

[linux-dvb] Re: shutdown



Joerg Riechardt wrote:
> 
> Here's a quick solution for the shutdown issue.
> 
> commands.conf:
> 23 : shutdown -h 23:00
> 23.5 : shutdown -h 23:30
> 24 : shutdown -h 0:00
> 0.5 : shutdown -h 0:30
> 1  : shutdown -h 1:00
> ........
> 
> Disadvantage: after starting a shutdown command it's no longer possible
> to make an input to vdr.

You could avoid this if you use the 'at' command to run a shutdown script
at the desired time:

commands.conf:

23   : at -f shutdown.sh 23:00
23.5 : at -f shutdown.sh 23:30
24   : at -f shutdown.sh  0:00
0.5  : at -f shutdown.sh  0:30
1    : at -f shutdown.sh  1:00

shutdown.sh:

#!/bin/sh
shutdown -h now

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


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



Home | Main Index | Thread Index