Questions tagged [cron.daily]
The cron.daily tag has no usage guidance.
31
questions
0
votes
0
answers
18
views
Dillon's dcron SYNC and ASYNC
The specific question for cron using Dillon's minimalist cron version is:
How to create a cron job that runs every first Friday of the month, in ASYNC mode?
Dillon's cron attempts to mix synchronous ...
0
votes
1
answer
120
views
Error when I execute crontab in linux
I'm executing a crontab where it call the script of python and the crontab are executing very well, but when I execute the crontab I need its will create other file in another directory, but that ...
1
vote
0
answers
824
views
Crontab not running @reboot
I have ubuntu server with crontab that is supposed to run mkdocs in tmux at reboot.
Worth noting is that I configure crontab by going into crontab -e.
Line is:
@reboot /usr/bin/tmux new-session -d -s &...
0
votes
0
answers
103
views
/etc/cron.daily/ what this command is doing?
Could you help to explain what this command is doing?
printf '#!/bin/sh\n\find /opt/traccar/logs -mtime +5 -type f -delete\n' > /etc/cron.daily/traccar-clear-logs && chmod +x /etc/cron....
1
vote
2
answers
241
views
Certwatch Falsely Reporting an Expired Cert
This is a bit of a weird one.
Every morning I get an email telling me one of my certificates is expired.
################# SSL Certificate Warning ################
Certificate for hostname '*....
-1
votes
1
answer
52
views
php core script not getting called from Crontab
I am using core PHP and written a simple script that needs to be called automatically. For testing purpose I have just written a print statement as below,
$host = 'localhost';
$user = 'admin';
$pass = ...
0
votes
1
answer
727
views
Cron Job for deleting daily apache Log
on my Ubuntu cloud server often happens when i visit apache log fiiles to be 5-10 GB in a day or two, i'm a user of vestaCP and destination of log files is: var/log/apache/domains/domain.error.log and ...
1
vote
1
answer
270
views
How can I make an environment variable visible to a script placed in /etc/cron.daily?
Say I have a script named "mydailyscript" containing the following:
#!/bin/bash
if [ ! -z $MYDAILYLOG]; then
exec 1>$MYDAILYLOG
fi
echo This script ran on $(date)
and I then copy this script to /...
0
votes
2
answers
95
views
Crontab entry executing every hour [duplicate]
What does this line mean in /etc/crontab file ?
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
3
votes
2
answers
3k
views
Cron daily running twice
On my CentOS 7 server, errors generated by a nightly backup script that should have run fine caused me to check on my cron activity. I discovered that cron.daily is running twice - here is the ...
4
votes
3
answers
3k
views
How to launch crontab commands inside of certain screen sessions?
I have a crontab that runs like this:
0 0 * * * /execute/shell/script.sh
0 0 * * * /execute/shell/script1.sh
0 0 * * * /execute/shell/script2.sh
And, I want to launch each script in a different ...
0
votes
0
answers
44
views
Which update scheme is better for an unattended Ubuntu server
I'm in a situation where I have to deploy an ubuntu server for a Client (they do not have a Sysadmin), and it will serve as an HTTP API backend for an app.
The catch is that after the deployment they ...
-2
votes
1
answer
78
views
Impossible to add a script to cron [closed]
I am trying to add a script to cron jobs to be played daily.
I tried multiple things but no one seems to work.
First I tried to add a script in cron.daily: It s not triggered.
#!/bin/sh
cd ~/foo/
/...
3
votes
0
answers
171
views
/etc/cron.daily/locate has blank line. File is readonly can't edit
I get this output every day.
/etc/cron.daily/locate:
run-parts: failed to exec /etc/cron.daily/locate: Exec format error
run-parts: /etc/cron.daily/locate exited with return code 1
File contents ...
20
votes
5
answers
44k
views
APT FATAL -> Failed to fork
I saw a lot of questions regarding this, but mine seems a little different.
Here's what I receive:
/etc/cron.weekly/apt-xapian-index:
FATAL -> Failed to fork.
run-parts: /etc/cron.weekly/apt-...
0
votes
1
answer
4k
views
cron.daily not running at the time it should?
My /etc/cron.daily scripts seem to be executing far later from what I understand they should. I am in Ubuntu and anacron is installed.
If I do a sudo cat /var/log/syslog | grep cron I get something ...
4
votes
2
answers
1k
views
How to recreate /etc/cron.daily/apt?
On my Debian 6.0.8 system the /etc/cron.daily/apt file is missing. Therefore, unattended upgrades do not work.
How can I recreate/fix /etc/cron.daily/apt?
4
votes
1
answer
2k
views
How can I create cron jobs in specific files on Linux Centos
I want to have a separate folders for cron jobs like:
/mydata/cronjobs
Now in that folder I want to have files like backup_server which will have the content like:
30 3 * * 1-5 /home/user/scripts/...
4
votes
1
answer
11k
views
logrotate cron job not rotating certain logs
I added two scripts in "logrotate.d" directory for my application logs to be rotated.
This is the config for one of them:
<myLogFilePath> {
compress
copytruncate
delaycompress
dateext
...
1
vote
1
answer
279
views
Cronjob not working properly on debian
I'm trying to run a PHP script everyday at midnight, so my cron has the following entry
@daily /usr/bin/php /websites/xxz/misc/wU5HaFre.php
/websites/xxz/misc/wU5HaFre.php has 755 rights, so it's ...
0
votes
3
answers
205
views
What is wrong with this cron tab entry?
0,35 * * * * /home/scripts/backup.sh "daily backup"
what is wrong with my cron tab line it isn't working I didn't try @daily yet but wanted to make sure it is running so am running it at 0 minutes ...
0
votes
4
answers
472
views
Calling a specific URL daily
I need that every night at 2:00 am a call to a specific URl is made.
For this reason, I inserted in the cronotab services the following:
crontab -e
0 2 * * * wget -q -0 - "http://MYWEBSITE"
But it ...
2
votes
2
answers
14k
views
How to add cronjobs to /etc/cron.daily/
We have to use crontab -e to add a cronjob to crontab.
And crontab -r to remove cronjobs.
Here, no Copy & Paste not allowed.
I need to add a script to cron.daily, how to add?
2
votes
2
answers
1k
views
CentOS 6.2 cron.daily
I created a new file "dbbackup" in /etc/cron.daily that contains a simple database backup script.
#!/bin/sh
mysqldump -h localhost -u user -p'passord' database_name > /var/www/sites/example.com/...
1
vote
1
answer
230
views
When will ANACRONTAB run cron.daily?
My RHEL has the following anacrontab config file, it has START_HOURS_RANGE and RANDOM_DELAY both missing, what hour does cron.daily start everyday? My guess is it is random. Is it true?
# /etc/...
1
vote
1
answer
424
views
preventing tmpwatch from clobbering archives that were "just" unpacked into /tmp
I have an application that unpacks an archive into /tmp, restoring the extracted files' modification and access times. Sometimes these files and the enclosing archive are many years old. After the ...
0
votes
1
answer
1k
views
CLAMAV Issue after i removed it
Here is my issue:
I removed clamav, spamassasin, and amavis and now I am getting this in my Citadel email box every day from some cron job that is searching for Clamav.
How do I amend the Cron job to ...
0
votes
1
answer
1k
views
Confused by email messages from cron and logwatch
Actually I found these reports in server's mail queue. It repeats everyday i find 3 mails...
2 from Cron Daemon
[cpbackup] Backups are not scheduled to run today (This can be adjusted in WHM => ...
30
votes
8
answers
29k
views
Robustly disabling specific cron.{hourly,daily,weekly} script
On various systems that I administer, there are cron scripts that get run via the commonly-used /etc/cron.{hourly,daily,weekly} layout. What I want to know is whether there's any common 'disable this ...
1
vote
4
answers
2k
views
find / -perm -4000 -o -perm -2000 > suid.. help with bash script to run nightly.?
help me with this this problem. so far i have "find / -perm -4000 -o -perm -2000 | xargs ls -l > suild.list" argument that i want to write as a bash script.
I would like to write this as a bash ...
1
vote
3
answers
315
views
Logwatch sends me 2 copies of yesterday's server activity, why?
I use Logwatch to track what is going on on one of my Fedora 11 boxes. Since updating it from an older Fedora release I now get 2 copies of the same information to my inbox. I cannot find where this ...