From owner-freebsd-questions Wed Jul 4 20:42:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id E338C37B401 for ; Wed, 4 Jul 2001 20:42:20 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 15729 invoked by uid 100); 5 Jul 2001 03:42:19 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15171.57882.968734.819186@guru.mired.org> Date: Wed, 4 Jul 2001 22:42:18 -0500 To: "Graham White" Cc: questions@freebsd.org Subject: Re: Cron In-Reply-To: <41469791@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Graham White types: > Greetings, I am trying to set up a script file to be automatically run by > cron every morning. The script works when I manually execute it. The path > and time variables for the script file are correct but when the time comes > for it to run nothing happens. If I set up the crontab file with the > command(that I have in the script file) itself rather than the path to the > script file it works! I've tried different permission settings but no luck. > Any suggestions? Karl covered dealing with cron proper. Another option is to move the script into /usr/local/etc/periodic/daily with the appropriate name and permissions. Then the periodic system would execute it every day with the other local periodic additions. See periodic(8) and periodic.conf(5) for more information. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message