I have a addlog.sh file which has the following content:
echo "time right now:" `date` >> ~/Desktop/date.log
This is how my crontab -l looks like:
* * * * * /bin/sh /Users/naman/Desktop/addlog.sh
I have added correct permissions to addlog.sh file and my shell is at /bin/sh.
I have verified that the manual run of addlog.sh is appending time to the date.log file.
I am running this in my local Mac. But its not working and not sure what I might be missing here.