Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2019 16:44:03 -0500
From:      Doug McIntyre <merlyn@geeks.org>
To:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: Crontab Question
Message-ID:  <20190410214403.GA18561@geeks.org>
In-Reply-To: <5cae6179.1c69fb81.12661.3a08@mx.google.com>
References:  <5cae4e6f.1c69fb81.95785.62bf@mx.google.com> <CAJuc1zNRcG5WaZ4weC=TNLuXCfT=oxMtismm%2B6apWXEtJZhH3A@mail.gmail.com> <5cae5cc3.1c69fb81.15e0.dbd1@mx.google.com> <CAJuc1zNdGBRWcdjwdOw%2BU7bqChRcFPqnKpS-kskhnpHvN=2d%2BA@mail.gmail.com> <5cae6179.1c69fb81.12661.3a08@mx.google.com>

next in thread | previous in thread | raw e-mail | index | archive | help
No. Your CWD can't be copied to a PATH variable.

For cronjobs, assume nothing. Hard code all path names. Assume the
only things in the PATH are /bin:/usr/bin, otherwise give full path
names to the programs you want to run. Assume no environmental variables
are set, assume you are on the most basic setup possible (because you are).



On Wed, Apr 10, 2019 at 04:34:49PM -0500, Software Info wrote:
> I see. I had however copied the output of env to the etc/crontab PATH line. Wouldn’t that care for an environment issue though?
> 
> 
> Regards
> SI
> 
> Sent from Mail for Windows 10
> 
> From: Jonathan Chen
> Sent: Wednesday, April 10, 2019 4:23 PM
> To: Software Info
> Cc: freebsd-stable@freebsd.org
> Subject: Re: Crontab Question
> 
> On Thu, 11 Apr 2019 at 09:14, Software Info <softwareinfojam@gmail.com> wrote:
> >
> > OK. So although the script is located in my home directory, it doesn’t start there?
> 
> Correct. You cannot make any assumptions about the environment.
> -- 
> Jonathan Chen <jonc@chen.org.nz>
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190410214403.GA18561>