[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cron error - date command



Good evening All

I have a niggling problem.Any suggestions, please?

If I run
echo `date +%d%b%Y` >>   /home/keith/.bash_history
in a xterm (Mate I think always), I get the expected result: a line in .bash_history reads

2020Feb01
followed by
echo `date +%Y%b%d` >>   /home/keith/.bash_history



I have this line as a cron-job, and constantly get error messages:

/bin/bash: -c: line 0: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 1: syntax error: unexpected end of file

and no output to .bash_history


Thanks for your suggests


--
Keith Bainbridge

keith.bainbridge.3216@gmail.com
0447 667 468


Reply to: