From owner-freebsd-questions Wed Oct 30 20:03:31 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22883 for questions-outgoing; Wed, 30 Oct 1996 20:03:31 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA22875 for ; Wed, 30 Oct 1996 20:03:29 -0800 (PST) Received: from relay3.UU.NET by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0vIner-0008tyC; Wed, 30 Oct 96 19:19 PST Received: from echonyc.com by relay3.UU.NET with ESMTP (peer crosschecked as: echonyc.com [198.67.15.2]) id QQbntc14774; Wed, 30 Oct 1996 22:10:27 -0500 (EST) Received: (from benedict@localhost) by echonyc.com (8.8.2/8.8.2) id WAA17755; Wed, 30 Oct 1996 22:04:03 -0500 (EST) Date: Wed, 30 Oct 1996 22:04:02 -0500 (EST) From: Snob Art Genre To: "Dennis B. Vega" cc: questions@freebsd.org Subject: Re: question abou cron In-Reply-To: <32704B29.167EB0E7@jpi.mozcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 25 Oct 1996, Dennis B. Vega wrote: > I'm using FreeBSD 2.1.0-RELEASE operating system. Recently, I wrote > a c-shell script that is executed by the root's crontab every 10 > minutes. My problem is the cron uses bourne shell in executing the > script even though the SHELL environment in the /etc/crontab is set > to SHELL=/bin/csh. How can I make this script run in the c-shell? > > Thanks in advance! > > Dennis Vega > Assuming csh is installed as /bin/csh, you need this line at the beginning of your code: #!/bin/csh Ben