Skip to main content
edited title
Link
Seamus
  • 3.9k
  • 2
  • 21
  • 49

How do I schedule Schedule a cron task to be repeated every day?

deleted 3 characters in body
Source Link

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u commandflag, to me it seems implied by running it without sudo, it's my own user.

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u command, to me it seems implied by running it without sudo, it's my own user.

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u flag, to me it seems implied by running it without sudo, it's my own user.

added 440 characters in body
Source Link

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u command, to me it seems implied by running it without sudo, it's my own user.

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u command, to me it seems implied by running it without sudo, it's my own user.

added 90 characters in body
Source Link
Loading
added 349 characters in body
Source Link
Loading
Source Link
Loading