Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我调用了一个 python 脚本,sudo -u user_name python python_scipt.py我需要使用 crontab 安排它每 30 分钟运行一次。问题是如何在 crontab 上使用 sudo 对其进行身份验证?
sudo -u user_name python python_scipt.py
一切都解决了sudo crontab -u username -e
sudo crontab -u username -e
学分到 9000