Skip to main content

Questions tagged [cron]

Cron is a job scheduler that allows users to run commands periodically.

0 votes
1 answer
52 views

Me and my team are working on a RHEL virtual machine and we were wondering how to handle the same crontabs from multiple users. When one of the users does set a crontab no one but the user itself can ...
Nauel's user avatar
  • 101
10 votes
2 answers
1k views

man crontab reads: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab ...
decision-making-mike's user avatar
1 vote
1 answer
44 views

I would like to run a custom script on startup. I added the script to my root crontab via sudo crontab -e and adding @reboot /path/to/my_custom_script.sh to the end. I made sure my_custom_script.sh ...
stones's user avatar
  • 13
0 votes
1 answer
82 views

I'm just trying to understand the behavior I'm seeing. I tried adding this line to my AWS EC2's (root) crontab: 00 00 * * * shutdown -h now But this never executed. When I added this to my own ec2-...
JTB's user avatar
  • 111
0 votes
0 answers
127 views

I need a script to run daily in an Alpine docker container. I have set it up as follows: copy the script to /etc/periodic/daily start the crond daemon in the container's ENTRYPOINT script: /usr/sbin/...
Olivier Gérardin's user avatar
0 votes
0 answers
49 views

I have been developing a task based system recently for a PHP project, which consists of tasks stored in a SQL database (MariaDB) for a queue, and a task worker PHP script to go through the queue and ...
Jacob Smith's user avatar
1 vote
1 answer
427 views

My end goal here is to have no saved network connections, no enabled Wi-Fi or networking each time I boot up my computer, so that I have to go through a sequence of steps in order to access internet. ...
mark coder's user avatar
-2 votes
1 answer
142 views

I set up the following cron job to check every minute if port 8088 is listening. If it isn't, the CLI should write the message Thu Jul 3 12:50:09 UTC 2025 bad to the log file /tmp/crob_log. Here is ...
yael's user avatar
  • 14k
1 vote
3 answers
486 views

I have been trying for a long to make the crontab entries to run, but it doesn't matter what Time / schedule I enter, it doesn't seem to work. I have confirmed my current time zone with date command &...
Neail's user avatar
  • 99
16 votes
1 answer
3k views

cronie 1.5.2 on RHEL 8.10 This entry runs foobar every 30 minutes from 13:00 to 17:30. */30 13-17 * * 1-5 foobar.sh Is there some clever (but not hackish, like adding "exit if it's 17:30&...
RonJohn's user avatar
  • 1,483
-1 votes
1 answer
76 views

I want to combine two different times which are in cron format into single time in bash shell script: e.g. time1 = 15 03 * * 1-5 time2 = 15 03 * * 6 result should be 15 03 * * 1-6 or e.g. time1 = ...
Vishal's user avatar
  • 1
2 votes
4 answers
320 views

Ubuntu 22.04 or AlmaLinux 9.5 I've seen a lot of questions about running scripts in random times during a day using bash's $RANDOM but a month exceeds the limit it has. How can I do that? It is a xdg-...
Daniel Stonek's user avatar
2 votes
1 answer
136 views

I am on Kubernetes. I need to be able to write and run cron jobs in a pod. I can't use the CronJob workload. The solution I found is to run cron jobs from a cron sidecar container. I write cron jobs ...
Mooch's user avatar
  • 41
-3 votes
2 answers
167 views

I have cron "clean up" some stuff overnight. A simple rm -f thisandthat. But if there is no file thisandthat, rm -f sends an e-mail to me at [email protected] - No such file or directory. I ...
user637's user avatar
0 votes
0 answers
341 views

My distro is based on Slackware, therefore it doesn't have systemd, but SysVinit + elogind. I'm trying to use LightDM to initiliaze my desktop environment sessions, but I have either dbus services ...
Fulalas's user avatar
  • 119

15 30 50 per page
1
2 3 4 5
160