From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 8C6222FFF8 for ; Tue, 7 Aug 2001 09:31:28 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f77DPWB05118 for axp-list@listman.redhat.com; Tue, 7 Aug 2001 09:25:32 -0400 Received: from info1.informi.com (info1.informi.com [195.54.79.97]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f77DPVg05112 for ; Tue, 7 Aug 2001 09:25:31 -0400 Received: (from peterb@localhost) by info1.informi.com (8.9.3/8.8.7) id PAA06610 for axp-list@redhat.com; Tue, 7 Aug 2001 15:32:42 +0200 Date: Tue, 7 Aug 2001 15:32:42 +0200 From: Peter Bech Message-Id: <200108071332.PAA06610@info1.informi.com> To: axp-list@redhat.com Subject: Re: RE: Reboot incrontab In-Reply-To: X-Mailer: Applixware 4.42 (1021.544.119) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; name="Body" Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: It's in the system crontab /etc/crontab. The other lines work fine. Heres the whole lot: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly # Hent posten # 05 0,3,6,9,10,11,12,13,14,15,16,17,18,21 * * * root /etc/hentpost.sh >/dev/null 2>/dev/null 3,12,21,39,46,57 * * * * root /etc/hentpost.sh >/dev/null 2>/dev/null 30 0 * * 0 root /backup/bak_week.sh >/backup/backup_week.log 2>/dev/null #30 0 * * 3 root /backup/bak_wed.sh >/backup/backup_wed.log 2>/dev/null # Reboot system 0 7 * * * root /backup/reboot.sh >/backup/reboot.log All the other lines work except the last line. If there is an error in the line, I would suspect a messge somwhere. At least I would expect a log entry in /var/cron. But could it be so simple, that I need a path to the "reboot" command? Or do I need the -f flag? Peter Bech Informi A/S ------------------------------------------------------------ Open Systems Hardware and Software Consultants Applix - Linux - Unix - OpenVMS - Alpha Systems Phone (+45): 4593 7666 Fax: 4593 6335 Mob: 4087 7601 Web: www.informi.com (Private: www.efk87.dk) ------------------------------------------------------------