Questions tagged [cron.daily]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
74 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
1answer
45 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
0answers
171 views

How to change WHMCS Domain Synchronisation Cron Report

I'm getting the following cron report. But my client wants me to make changes so that he could get report that shows number of changes, new accounts, emails sent....etc https://prnt.sc/sbaz50 I'm ...
0
votes
1answer
170 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
1answer
127 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
2answers
40 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
2
votes
2answers
2k 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 ...
3
votes
3answers
2k 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
0answers
42 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
1answer
74 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
0answers
155 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 ...
14
votes
5answers
35k 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
1answer
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
2answers
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
1answer
1k 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
1answer
8k 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
1answer
272 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
3answers
181 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
4answers
329 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
2answers
11k 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
2answers
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
1answer
215 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
1answer
416 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
1answer
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
1answer
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
8answers
23k 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
4answers
1k 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
3answers
301 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 ...