From owner-freebsd-questions Mon Apr 29 20:28:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id C477837B400 for ; Mon, 29 Apr 2002 20:28:19 -0700 (PDT) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.11.6/8.11.6) with ESMTP id g3U3MlH25214; Mon, 29 Apr 2002 20:22:47 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Date: Mon, 29 Apr 2002 20:22:47 -0700 (PDT) From: Annelise Anderson To: Mike Galvez Cc: "Christopher J. Umina" , questions@FreeBSD.ORG Subject: Re: Cron can't exec /bin/sh In-Reply-To: <20020429155618.C44973@mail.virginia.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Mon, 29 Apr 2002, Mike Galvez wrote: > On Mon, Apr 29, 2002 at 03:28:33PM -0700, Christopher J. Umina wrote: > > hihi, > > > > Why can't cron exec /bin/sh? I got this e-mail as root..: > > > > cron: execl: couldn't exec `/bin/sh': Permission denied > > > > This is my crontab file: > > > > 0 0 * * 0 cvsup supfile > > Try using the full path to cvsup i.e.: /usr/local/bin/cvsup > > 00 15 * * 1-5 /usr/local/bin/cvsup supfile Also if this is the system crontab (in /etc) you need to specify as the 6th field the user who is to run the command, i.e., in this case root. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message