How to log cron jobs?

* * * * * myjob.sh >> /var/log/myjob.log 2>&1 will log all output from the cron job to /var/log/myjob.log You might use mail to send emails. Most systems will send unhandled cron job output by email to root or the corresponding user.

What is the Windows version of cron? [closed]

For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler For command-line usage, you can schedule with the AT command. For newer Microsoft OS versions, Windows Server 2012 / Windows 8, look at the schtasks command line utility. If using PowerShell, the Scheduled Tasks Cmdlets in Windows PowerShell are made for … Read more

Cron and virtualenv

You should be able to do this by using the python in your virtual environment: /home/my/virtual/bin/python /home/my/project/manage.py command arg EDIT: If your django project isn’t in the PYTHONPATH, then you’ll need to switch to the right directory: cd /home/my/project && /home/my/virtual/bin/python … You can also try to log the failure from cron: cd /home/my/project && … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)