[QCLUG] Re: Kid timer

Leif Theden leif.theden@gmail.com
Mon, 17 Jul 2006 15:26:37 -0500


if you want a graphical dialog to warn the user that the computer will
shutdown, add this to the kid's startup script (~/.xinitrc):
xhost +hostname   (where hostname=the computer's name)

and add this before your shutdown command:
zenity --info --text='computer will shutdown in 5 minutes'


On 7/17/06, Jason Sweat <jason.sweat@gmail.com> wrote:
> On 7/17/06, Jim Hall <volunteer.jim@gmail.com> wrote:
> > 2.)  I added the above line to '/etc/crontab'. Shutdown did occur, but no
> > message poped up on the screen. Or, if it did, it was momentary. I believe
> > 'cron' is 'Vixie cron', if that makes any difference.
> >
> > Jim
>
> from man shutdown:
>    -t sec Tell init(8) to wait sec seconds between sending processes
> the warning and the kill sig-
>               nal, before changing to another runlevel.
>
> -t 300 should do it
>
>
>
> --
> Regards,
> Jason
> http://blog.casey-sweat.us/
> _______________________________________________
> QCLUG mailing list
> QCLUG@qclug.org
> http://qclug.org/mailman/listinfo/qclug
>