From owner-freebsd-questions Wed Aug 16 5:34:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id 2A7D537B51B for ; Wed, 16 Aug 2000 05:34:42 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id IAA45003 for ; Wed, 16 Aug 2000 08:32:16 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <399A89CC.AA704AD6@wmptl.com> Date: Wed, 16 Aug 2000 08:32:12 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: /etc/crontab not work? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have two cron jobs which won't seem to run. If I run the exact same commands from a shell script, then everything goes well. There are no errors reported, nothing get's logged, yet nothing gets done either. The two entries in question are as follows: # run Perl script which backs up our databases # permissions set to 755, runs if user types: /etc/database-backup # must be run as root, should run nightly at or around 8:00pm 10 20 * * * root /etc/database-backup 2>&1 | sendmail garbage # run Perl script which backs up our databases # permissions set to 755, runs if user types: /etc/website-backup # must be run as root, should run Saturday nights at or around 8:30pm 30 20 * * 6 root /etc/website-backup 2>&1 | sendm ail garbage If I create a shell script with the following: #!/bin/sh /etc/database-backup 2>&1 | sendmail garbage /etc/website-backup 2>&1 | sendmail garbage chmod 755