Question

My python script: badlink.py (i used http://wummel.github.io/linkchecker/)

#!/usr/bin/python
import os
os.system('linkchecker -ocsv -Fcsv/badlinks.csv www.mysite.com')

My crontab task

*/2 * * * * /opt/badlink.py 

the problem is that If I run directly

python badlink.py I got the output result

My question is why it does not work with cronjob task.

Thanks

Was it helpful?

Solution

try like this

   */2 * * * * python /opt/badlink.py
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top