報錯:
sudo:sorry, you must have a tty to run sudo.
在shell腳本調用perl之前加上sudo,shell腳本單獨執行是沒有錯誤的。
解決crontab問題:
sudo vim /etc/sudoers
註釋掉: Defaults requiretty。
報錯:
sudo:sorry, you must have a tty to run sudo.
在shell腳本調用perl之前加上sudo,shell腳本單獨執行是沒有錯誤的。
解決crontab問題:
sudo vim /etc/sudoers
註釋掉: Defaults requiretty。