Crontab Question
Doug McIntyre
merlyn at geeks.org
Wed Apr 10 21:44:12 UTC 2019
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 at freebsd.org
> Subject: Re: Crontab Question
>
> On Thu, 11 Apr 2019 at 09:14, Software Info <softwareinfojam at 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 at chen.org.nz>
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
More information about the freebsd-stable
mailing list