Questions tagged [cronjob]
The cronjob tag has no usage guidance.
90
questions
0
votes
0
answers
161
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 ...
1
vote
1
answer
949
views
Many cron -f processes on unresponsive server
My Debian server had again become unresponsive and needed to be restartet (SSH login impossible, no longer transmitted log data to another server's MySQL Database, no new FTP connections possible, but ...
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?
2
votes
2
answers
5k
views
How to set CRON to execute a php file outside of a public html folder?
I have a php file located at, let's say, for example:
/data/web/process.php
This file is not publicly available (no virtual host is running in that folder, but apache is installed). I need to ...
0
votes
1
answer
383
views
Cron strange behaviour
I've got a Bash script with all the permission to be excecuted, I attach it to to a cron job, this script basically only kills and restarts a specific process. The strange behaviour is that if I run ...
1
vote
2
answers
3k
views
How do I make cron run a Java GUI application?
I have a script which runs a Java GUI application using "java -jar app.jar". I have added the script to the crontab to run every minute, check the processlist if the application is up. If it isn't it ...
1
vote
2
answers
573
views
Cron Job command - understanding
I am using a cron job, received from one of my suppliers, in order to create/update the products data, stock, status, in my Woocommerce website.
I have installed their plugin, all verification are ...
29
votes
2
answers
25k
views
Where to store cronjob script?
I'd prefer to not keep it in my /home/myusername directory. Is there a best practice of where to store your shell scripts for cronjobs? At the root level?
I'm running ubuntu server 12.04 right now.
0
votes
0
answers
54
views
I created a cronjob years ago, now it is still running on the server but I can't locate it with "crontab -e", what can I do?
two years ago I created a cronjob which execute a python script to backup stuff. Now, the thing is that this cronjob is still running:
/var/log/cron.log.1:Oct 9 20:00:02 syslogngsrv CRON[28292]: (...
2
votes
1
answer
3k
views
How to test cron @reboot entry?
How can I test if @reboot is working without the need of reboot the machine?
Is there anyway to force @reboot to entry to run?
Thank you.
2
votes
3
answers
9k
views
Cron Command for twice a month on Sat @12am
I am wondering if someone can help with the simple but sometimes confusing commands regarding Cron jobs.
I would like a cron job to run twice a month on a Saturdat @12am.
0
votes
2
answers
524
views
Output of 'date +%a' always in system-language?
Does date +%a output always the weekday in the system language?
No matter if in bash, sh or cronjob
10
votes
3
answers
57k
views
cron expression for every hour starting from specific time
Every one hour (starting from "now") I am able to schedule using this cron expression (expression) using nodejs cron-job.
But I need to set cron every one hour starting from a specific time. For ...
2
votes
1
answer
24
views
Trying to run a shellscript but not workung
My shell script is running when I manually run it. Cronjob is also working, al others are running but not this script.
This is my code.
30 3 * * * cd /var/www/html/cronjob && sh shellscript.sh ...
1
vote
1
answer
809
views
How would I make a cron job stop and start again?
I am trying to make a cron job that stops at 12am today(friday) then start again Monday at 7am, what would the script for this look like, I am new to cron jobs.