[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] error running clock in cron.daily
- Subject: Re: [cobalt-users] error running clock in cron.daily
- From: "H.P. Stroebel" <hpstr@xxxxxxxxxxxxx>
- Date: Mon Jun 5 14:28:30 2000
Doug MacAdam schrieb:
>
> `
>
> That little character (ahead of /sbin/clock), is my guess...it's unmatched,
> but don't know where to fix it though :\ If you find out how to squash this
> bug, please send the word! Thanks.
that character does not appear in the original script; it`s part of
the error message.
the script (mine at least) is as follows :
#!/bin/sh
# NTPdate cron event
# Configured through the administrative web interface
# Copyright (C) 1998, Cobalt Networks, Inc
# All rights reserved
sleep 585
/usr/sbin/ntpdate ntp2.fau.de >>/var/cobalt/sauce.log 2>&1
/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
unlink()
/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
it is interesting that after pressing "save changes" in the time control
panel the sleep argument (585) increased (from 420)...
i even don`t understand the stout redirection to /var/cobalt/sauce.log,
as hwclock (linked from clock) with the params -wu has no output when
entered in the shell.
it seems that the shell interprets the last line as a parameter for the
unlink (huh?) command because of a syntax error.
and, hwclock expects the date as a parameter for the -w option...
seems to be a mess :-(
--
H. P. Ströbel
PGP Digital Fingerprint :
58E0 6ECB 620A A689 E206
BCA8 300F BC45 6EEC F7C3
Yes, I do. But not Yahoo.