From owner-freebsd-questions Wed Jan 5 14:32: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx.cti.gr (kronos.cti.gr [150.140.1.25]) by hub.freebsd.org (Postfix) with SMTP id 984EA1521D for ; Wed, 5 Jan 2000 14:31:56 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: (qmail 13444 invoked from network); 5 Jan 2000 22:31:54 -0000 Received: from unknown (HELO localhost.hell.gr) (150.140.30.46) by kronos.cti.gr with SMTP; 5 Jan 2000 22:31:54 -0000 Received: (qmail 619 invoked by uid 1001); 5 Jan 2000 21:52:23 -0000 Date: Wed, 5 Jan 2000 23:52:23 +0200 From: Giorgos Keramidas To: Ben Smithurst Cc: Joss Roots , freebsd-questions@freebsd.org Subject: Re: HELP: cron & /etc/periodic question. (it was the PATH environ.) Message-ID: <20000105235223.B391@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <20000104140527.7441.qmail@web124.yahoomail.com> <20000104204917.B9437@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20000104204917.B9437@strontium.scientia.demon.co.uk> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jan 04, 2000 at 08:49:17PM +0000, Ben Smithurst wrote: > Joss Roots wrote: > > > I discovered that changing the relative path to an absolute one > > resolves the problem and the scripts is actually executed. cron was > > just ignoring the script, which called another 2 scripts. but when I > > added the full path, it worked. > > > > OK now the user root, should export his PATH environmental variable, > > so I am using tcsh how can I do this. > > I don't use tcsh, so I don't know. I think it's something like "setenv > PATH /foo:/bar". It seems that changing the `path' variable or the `PATH' environment variable affects both these variables. I am using /bin/csh from a fairly up-to-date 3.4-STABLE system. [hades!charon:~] /bin/csh You have mail. % echo $path /sbin /bin /usr/sbin /usr/bin % echo $PATH /sbin:/bin:/usr/sbin:/usr/bin % set path = ( . ) % echo $path . % echo $PATH . % setenv PATH /bin: % echo $path /bin . % echo $PATH /bin: % exit -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message