I add the following line to the red-hat crontab in order to run the script /var/scripts/info_from_all_sites.bash every Friday at 00:00 nightscript should get as argument the file -  /var/RT/names.txtso script will read all info from this file, 0 0 * * 5   /var/scripts/info_from_all_sites.bash /var/RT/names.txt 1>/dev/null 2>&1my question is - is it OK to add the file as argument to the script in the crontab ? Or maybe I need to put the file with double quotes as   0 0 * * 5   /var/scripts/info_from_all_sites.bash /var/RT/names.txt ?
Linux redhat crontab + run script with arguments
shell script;rhel;cron
Yes, it is ok to do this.From the crontab(5) manual:The sixth field (the rest of the line) specifies the command to be   run.  The entire command portion of the line, up to a newline or a   % character, will be executed by /bin/sh or by the shell specified   in the SHELL variable of the cronfile.  A % character in the  command, unless escaped with a backslash (\), will be changed into   newline characters, and all data after the first % will be sent to   the command as standard input.