The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
6answers
4k 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 ...
4
votes
1answer
106 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 ...
2
votes
2answers
472 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 > ...
2
votes
2answers
70 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?
2
votes
1answer
424 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 ...
2
votes
0answers
20 views

where does Cron look for the default mail binary? [migrated]

I have setup Cron Jobs to run inside a Chroot Environment, depending on the User/Group; I have noticed that these cron jobs, running inside the chroot environment, fail to send any mail. Log files ...
1
vote
4answers
668 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
256 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 ...
1
vote
1answer
151 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 ...
1
vote
1answer
221 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
4answers
156 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 ...
0
votes
3answers
130 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
2answers
261 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?
0
votes
1answer
107 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? # ...
0
votes
1answer
544 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 ...
-1
votes
1answer
694 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 => ...