Reputation: 569
I have a call to a python script that is sudo -u user_name python python_scipt.py
and I need to schedule it to run every 30 minutes with crontab. The problem is how can I authenticate it with sudo on crontab?
Upvotes: 2
Views: 505
Reputation: 569
Everything solved with the sudo crontab -u username -e
credits to 9000
Upvotes: 1