[CentOS] run bash <filename> from cron

Wed Nov 15 18:22:12 UTC 2017
m.roth at 5-cent.us <m.roth at 5-cent.us>

Mark Haney wrote:
> On 11/15/2017 11:48 AM, m.roth at 5-cent.us wrote:
>> Mark Haney wrote:
>>> For the record, this was the only option to handle the task I'm having
>>> issues with inside cron.
>> Yes. Do not trust your environment, running as a cron job, to be what
>> you think it is. Try testing it by have your cron job, at the top of the
>> script, issue the env command.
> I'm not sure I follow, where should the env command be placed?  At the
> front of the cron line?
crontab -e
1 1 * * * run_my_script
Ok, I forget if you said it was perl or bash...

more run_my_script


<rest of script>

Is that clearer?