This question already has an answer here:
We have currently setup a cron job for our new script as below:
46 22 * * * /gzm_common/diagbat9/global/prod/chgstatus.sh /backups/diagbat9/Demantra/output/SK_ITEM_EXTRACT_MFGPRO_$(date +%m%d%y).txt
It takes the file with .txt as extension as a parameter. When the cron job executed, the file did not get created. This is what we got of the file at 22:46 pm:
and this is a zero byte file, whereas it should contain a lot of data. Shall I try putting the entire filepath and name in double quotes?