Lucas Pereira
Lucas Pereira

Reputation: 569

Authenticate with sudo on a crontab job

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

Answers (1)

Lucas Pereira
Lucas Pereira

Reputation: 569

Everything solved with the sudo crontab -u username -e

credits to 9000

Upvotes: 1

Related Questions