Date: Wed, 5 Jan 2000 23:52:23 +0200 From: Giorgos Keramidas <charon@hades.hell.gr> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: Joss Roots <osiris2002@yahoo.com>, freebsd-questions@freebsd.org Subject: Re: HELP: cron & /etc/periodic question. (it was the PATH environ.) Message-ID: <20000105235223.B391@hades.hell.gr> In-Reply-To: <20000104204917.B9437@strontium.scientia.demon.co.uk> References: <20000104140527.7441.qmail@web124.yahoomail.com> <20000104204917.B9437@strontium.scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000105235223.B391>
