I'm having issues running a certain shell script in crontab. I've narrowed down the problem to the arguments that I'm trying to provide to the shell script. The first argument is a date YYYYMMDD and the second argument is a file. The shell script executes fine with the arguments when I run it manually from cli. If I remove the arguments and run from crontab, the script executes, but no output because I need the arguments. Here is what I'm using right now...
08 09 * * * tjordan /home/tjordan/HWinventory_Box.sh $(date '+%Y%m%d') /home/tjordan/hostnames
So I'd like to know how I need to format this job so it will run with the arguments.