
Mac에서 crontab을 사용하여 Python 작업을 자동화하려고 합니다. cron에서는 실행되지 않지만 수동으로 실행하고 스크립트에 전체 권한이 부여되면 작동합니다. 테스트로 echo 명령이 실행되었으며 예상대로 작동했습니다. 도와주세요.
admin$ crontab -l
*/1 * * * * python3 /Users/admin/Desktop/Py_examples/tweepy_test.py >> /Users/admin/Desktop/Py_examples/log.txt
*/1 * * * * echo 'testing' >>
/Users/admin/Desktop/Py_examples/test.txt