'cronjob error in OSX: "no path for address"

I tried running a Python script using cronjob but I get the following error:

cron[44405]: no path for address 0x10ff7a000 in grep cron /var/log/system.log

When I ran the script without using cronjob it worked:

/usr/bin/python  /Users/anuj/Desktop/message.py

I tried adding the cron job using $sudo crontab. This is the CRON script:

*/1 11-17 * * 1-7 /usr/bin/python  /Users/anuj/Desktop/message.py

Both paths are correct for root mode and user mode as I am running cron with sudo.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source