Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cronjob not running with sudo #189

Open
rainer2208 opened this issue Aug 23, 2024 · 0 comments
Open

Cronjob not running with sudo #189

rainer2208 opened this issue Aug 23, 2024 · 0 comments
Labels

Comments

@rainer2208
Copy link

Hi guys, I am on Arch and trying to get a cronjob running with admin privileges.

Inside my crontab files i have this line of code :

*/1 * * * * echo “Linux is Cool!” >> ~/crontab_log.txt
`
The code executes perfectly when running the job not with sudo, but fails when i use sudo.

crontab -e                (runs the code)
sudo crontab -e      (does not run the code)

In both crontab files the content is exactly identical.

What am I missing ? Is there a need to activate the job?

@t8m t8m added the question label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants