On Thu, 11 Apr 2019 at 09:34, Software Info <[email protected]> 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?
When I say "environment", I mean it in the generic sense; including working-directory. However, best practise is to keep /etc/crontab as minimal as possible, and to set up environ(7) within the invoked script-file. Security-wise, you should just keep PATH in /etc/crontab to the standard, and invoke your script with: * * * * * user /path/to/my/script This is especially important when running as root. Cheers. -- Jonathan Chen <[email protected]> _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[email protected]"
