Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 1996 22:04:02 -0500 (EST)
From:      Snob Art Genre <benedict@echonyc.com>
To:        "Dennis B. Vega" <vega@jpi.mozcom.com>
Cc:        questions@freebsd.org
Subject:   Re: question abou cron
Message-ID:  <Pine.SOL.3.91.961030220235.12719A-100000@echonyc.com>
In-Reply-To: <32704B29.167EB0E7@jpi.mozcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.961030220235.12719A-100000>