[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] crontabs on a raq
- Subject: Re: [cobalt-users] crontabs on a raq
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Mon Jan 3 15:24:56 2000
It works for me.
When I set up time synchronization with an NTP time server using the RaQ
web-based interface, it put a file into cron.daily.
I decided I wanted this run hourly; not daily, so I copied it into cron.daily.
Here's the file's contents:
#!/bin/sh
# NTPdate cron event
# Configured through the administrative web interface
# Copyright (C) 1998, Cobalt Networks, Inc
# All rights reserved
sleep 144
/usr/sbin/ntpdate ntp-cup.external.hp.com >>/var/cobalt/sauce.log 2>&1
(Don't ask me what the 2>&! means; I have no idea.)
Here's the last five lines from the tail of my /var/cobalt/sauce.log:
3 Jan 11:03:25 ntpdate[12525]: adjust time server 192.6.38.127 offset
0.033740 sec
3 Jan 12:03:30 ntpdate[12928]: adjust time server 192.6.38.127 offset
0.033004 sec
3 Jan 13:03:28 ntpdate[13352]: adjust time server 192.6.38.127 offset
0.034040 sec
3 Jan 14:03:25 ntpdate[13782]: adjust time server 192.6.38.127 offset
0.033485 sec
3 Jan 15:03:26 ntpdate[14189]: adjust time server 192.6.38.127 offset
0.035255 sec
As you can see, it's running every hour.
Jeff
At 02:53 PM 1/3/00 Luc Schiltz wrote:
hi,
in order to make a program start e.g. every hour, is it enough to put a sh
file in /etc/cron.hourly
in order to make it starting every hour ?
thanks
Luc
--
Jeff Lasman, nobaloney.net
<jblists@xxxxxxxxxxxxx>
<www.nobaloney.net>, <www.mailtraqna.com>, <www.email-lists.com>