For what it's worth, where I work, we've set up dozens of cron jobs on multiple servers. We have cron executing scripts rather than commands.The right way to do it (and the way I do do it) is to never put any kind of complex command line (i.e., one that depends on bash-isms) directly into the crontab file.
So we'll create bash scripts in a specific folder, and than tell cron to execute those scripts.
Maybe this info will help others, may not.
Statistics: Posted by JoseKreif — Mon Jan 06, 2025 8:10 pm