문제

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

도움이 되었습니까?

해결책

try like this

   */2 * * * * python /opt/badlink.py
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top