*BSD News Article 58333


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!agate!sunsite.doc.ic.ac.uk!demon!mail2news.demon.co.uk!excelsis.demon.co.uk
From: Sally Woolrich <Sally@excelsis.demon.co.uk>
Newsgroups: comp.unix.admin,comp.unix.bsd.misc,comp.unix.questions
Subject: Re: Crontab Files
Date: Thu, 28 Dec 95 10:39:12 GMT
Organization: Excelsis
Lines: 22
Message-ID: <820147152snz@excelsis.demon.co.uk>
References: <Leigh-2112952023160001@merlin.alexandria.com> <n84433A69@nelliott.tcp.co.uk>
Reply-To: Sally@excelsis.demon.co.uk
X-NNTP-Posting-Host: excelsis.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.30
X-Mail2News-Path: excelsis.demon.co.uk
Xref: euryale.cc.adfa.oz.au comp.unix.admin:36679 comp.unix.bsd.misc:420 comp.unix.questions:74797

In article <n84433A69@nelliott.tcp.co.uk>
           nigel@nelliott.tcp.co.uk "Nigel Elliott" writes:

> To anyone out there,
>   I am trying to setup a crontab to execute at a certain fine which is fine,
> the problem I am finding though is the paths that are required are not set
> in crontab.  So what I am asking is, is there a way of setting up paths for
> cron.  I would be very thankful if anyone could help me with this problem.

Use 'crontab' to run a script which itself sets up the required
environment and then does the actual business (e.g.):

	PATH=$PATH:/mydir:....; export PATH
	MYVAR=value; export MYVAR
	myprog args

-- 
============================================================================
Sally Woolrich                    |          This mail contains my personal
sally@excelsis.demon.co.uk        |          views not those of my employer!
============================================================================