简体   繁体   中英

[Errno 32]Broken pipe in Python Script in Crontab

I am running a Python script which downloads PDF files from the FTP. The script when run manually works perfectly but when i put it in crontab in my ubuntu machine and execute it i get a an error [Errno 32] Broken pipe. Any idea why this happens and how do i handle this?

嗨,我知道这个错误发生,但是当我将打印语句从我的脚本定向到另一个文件时,这个错误没有出现,并且我的脚本成功运行了。示例:Myscript.py> test.log

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM