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

Re: [cobalt-users] urgent help please



On Sun, 18 Jun 2000, andy wrote:

> i am in a dilema my raq3 stops respoding to ping etc sometime each night. I
> have rang cobalt but still waiting for a response, i do not have a restore
> cd at the moment and the machine is colocated. Insted of me ringing them up
> each morning to re boot it i have an alternative plan. (just not sure how to
> do it) I want to run a scrip via cron or whatever to reboot my server at
> 6.00 am each morning. How do i do this ? i asume the script would just
> contain
> 
> #!bin/bash
> shutdown -r now
> 
> is that correct and how do i add it to cron etc to run at 6.00 ? and how
> would i remove the cron job in the future. Please help

run the command 

man /usr/man/man5/crontab.5

it will show how to add lines to the /etc/crontab file

If you happen to have a Linux box with KDE handy, you can use "kcron"
which is a nice GUI written by a friend of mine, that allows you to create
a crontab file by point and click. Than you could just copy the right line
from the cron over to the RaQ.