From owner-freebsd-questions Wed Jul 4 11:54:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx0.dmpriest.net.uk (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id B19B037B406 for ; Wed, 4 Jul 2001 11:54:52 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from geko (geko.dmpriest.com [195.188.177.197]) by mx0.dmpriest.net.uk (8.11.4/8.11.4/Kp) with ESMTP id f64IscH13333; Wed, 4 Jul 2001 19:54:38 +0100 (BST) Date: Wed, 04 Jul 2001 19:54:36 +0100 From: Karl Pielorz To: Graham White Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: Cron Message-ID: <125203352.994276476@geko> In-Reply-To: References: X-Mailer: Mulberry/2.1.0b1 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --On 04 July 2001 11:47 -0700 Graham White wrote: > 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? It'd probably be handy if you posted exactly what you'd put in the cron? Most the time I put items in the crontab (especially scripts) they fall foul of not having the same PATH that my shell usually has... I usually remember to test them by running up a seperate, very basic /bin/sh, and seeing if they fly from that... -Kp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message