All Questions
48
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 ...
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]: (...
1
vote
0
answers
151
views
Lynx-dump cron job not working after installing SSL certificate
I have a cron job that has always worked fine, until we installed an SSL certicate and updated our .htaccess file to redirect all http requests to https. Now, the cron job is not working and I'm ...
0
votes
1
answer
327
views
S3 command not working in cron
I have this ultra simple cron job:
48 20 * * * cd /home/pankaj;s3cmd -f get s3://myfile.gz
The command works by itself. But the cron job does not. The cron job
is created for the same user(pankaj) ...
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.
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.
0
votes
0
answers
1k
views
Terminal with a command line switch --minimized (or --min etc.)
I am trying tu run terminal commands so a terminal window is shown only in a task bar or even not shown at all. There are some approaches of it with xdotool or wmctrl but they work so the window ...
0
votes
1
answer
1k
views
how to add timestamp to file names when moving them to cloud storage using cron job in ssh
I have built an ftp server on google compute engine that receives data from on prem systems as csv. I want to move this data after receiving it to a google cloud storage using a cron job from the vm ...
0
votes
1
answer
540
views
Crontab does not launch when log out
On a google Cloud Ubuntu VM, I have setup few crontab like below :
0 15 * * * sudo /home/username/bin/python /home/username/project27/scheduler/batch.py &>> /home/username/project27/...
0
votes
2
answers
255
views
Install cronjob from file to a specific user
I have an install script that sets up a user.
Using the install script, I want to apply a cronjob that gets executed by that user (myuser):
0 4 * * * /home/myuser/script-to-run-at-4am.sh
I have ...
0
votes
2
answers
4k
views
Cron job string settings to fire 4 times a day in between 5-10
* 5-10 * * * will fire the script between the said timings but how will I control the count?
BTW the count and the timings can be anything, means it will be dynamic and not static. Just put up a ...
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 ...
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 ...
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.
1
vote
1
answer
1k
views
Cron file in cron.d isn't running at all, why?
I am unable to run my cron file stored at
/etc/cron.d
but it wouldn't run for unknown reasons :/ can someone please help?
Content of my cron file is as follows:
PATH=/usr/local/sbin:/usr/local/...