Skip to main content

Questions tagged [crontab]

Crontab is a short form of cron table. It is a configuration file that specifies shell commands to run periodically on a given schedule.

0 votes
1 answer
34 views

Crontab doesn't apply the changes after editing it with crontab -e

In summary: I ran crontab -e, added a line, saved, said: crontab: installing new crontab, but running crontab -e just shows an old version of the file. Full explaination: Yesterday I added a line to ...
James T's user avatar
0 votes
0 answers
154 views

Include hostname in crontab MAILFROM?

We have a lot of servers on RHEL8 & RHEL9 and would like to set something like this in crontab: [email protected] Problem is that HOSTNAME is not defined in the environment ...
Rop's user avatar
  • 1,341
0 votes
1 answer
206 views

Cron job does not execute according to time schedule

Consider the following cron job: * 22-23 * * * /usr/bin/curl -u username:paswword http://api.example.com/api/test2.php Now, according to this, the cron job must run every minute starting from 22h00 (...
Clint William Theron's user avatar
1 vote
1 answer
237 views

What happens if I execute swapoff && swapon when RAM + swap exceeds RAM capacity

What happens if I execute the command sudo swapoff -a && swapon -a having RAM full 25GB/32GB and swap full 20GB/32GB? 25+20 = 45 > 32 so there's no way RAM can fit all operating data. On ...
banan3'14's user avatar
  • 237
3 votes
1 answer
546 views

Is that anyway to use with crontab with two commands such as shutdown and run script after reboot?

Is that anyway to use with crontab with two commands such as shutdown and run script after reboot? My entire command is not work. Only first command works: 22 16 * * * sudo shutdown -r 25 16 * * * @...
Aung Myo's user avatar
2 votes
1 answer
259 views

Within Docker, how to correctly add a task to cron programmatically (scripting)? no errors are perceived in log

After several days of messing around with Docker, I have not found a solution to my problem. In short, I have tried to add cron to php:8.1-apache-bullseye and pass it a file with the task that I want ...
Francisco IA Lover's user avatar
0 votes
1 answer
121 views

OSX cronjob doesn't have permission to touch existing files in Downloads?

I recently updated from OSX 13.2 to 13.5.2 and all my cronjobs are failing now. I'm trying to run rsync in a cronjob but it keeps failing, and I ultimately narrowed that down to my cron jobs not ...
Nobody's user avatar
  • 3
2 votes
1 answer
174 views

how do I remove errant control characters from crontab

I edited my crontab and strangely started getting "error: bad minute". Searching around, I discovered the cause was errant control characters. I can see the character $ at the end of each ...
punkish's user avatar
  • 253
0 votes
0 answers
74 views

Running a "System Events" automation using crontab in MacOS

update - the crontab is running the binary, but nothing happens, no errors or any output. it's have the same behavior as if it has no permissions the change the system settings I want to execute dark-...
Meir Tolpin's user avatar
4 votes
1 answer
316 views

Where is crontab's time command documented?

I'm searching for the documentation of the time command that can be prepended to the script in crontab * * * * * time somescript.sh
wolfrevo's user avatar
  • 217
16 votes
2 answers
7k views

Can I specify a specific time with seconds with Linux crontab?

49 18 * * * mpv ~/Musik/Donau.mp3 This command would play the Donau.mp3 file at exactly 6:49pm. How could I, for example, specify 6:49:50pm?
Peter Andres's user avatar
1 vote
0 answers
177 views

mount and systemctl not executing inside crontab

Under root, i run crontab -e and write : 0 21 * * * systemctl stop transmission-daemon && umount /mnt/WD5 && hdparm -y /dev/sda I also tried 0 21 * * * mount /mnt/WD5 None of them ...
Adrien's user avatar
  • 111
0 votes
2 answers
1k views

Why is crontab not executing my .sh file?

I am completely and utterly confused at why crontab with not run this .sh file. I'm using a package called pushover notifications to send a notification to my phone. I've tried so many different ...
PapRedpaw's user avatar
1 vote
1 answer
127 views

How to pass keyword to background process to close properly?

I have just created a shell script and and added to crontab -e Crontab is working fine but when I kill process manually the recorded video of that process is not playable. Because when I run the ...
Farid's user avatar
  • 21
0 votes
1 answer
713 views

Crontab append a command to certain user using shell

I am trying to set up a cron job using a shell script but I am unable to find a solution to it I am trying to use crontab like this: #cron.sh echo "*/1**** /opt/file/test.sh" | crontab - I ...
Nilay Singh's user avatar

15 30 50 per page
1
2 3 4 5
22