The cron tag has no wiki summary.
2
votes
1answer
34 views
How does cron.d notify the system?
If I put a new script into /etc/cron.d/ how does the system know to insert it into the global crontab?
Do I need to restart a process to pick it up?
Does init run crontab every minute, and it'll ...
0
votes
1answer
42 views
Run cron job every 10 minutes, from 4:40 to 0:15
I need to run a cron job every 10 minutes, only between 4:40 and 0:15. I've managed to schedule the cron job to run from 4 to 0 o'clock, but can't figure out how to schedule it further. This is what I ...
0
votes
1answer
25 views
cron job gives me permission denied errors when running
Been trying to run a cron but keep getting permission died error in my /var/spool/mail/root
"/bin/sh: /disk1/archives/backup.website.cron: Permission denied"
This is my ls -hal for the directory my ...
2
votes
2answers
41 views
how to setup a cron job and using the proper syntax in my jobs
I want to make a cron job that creates a tar of my web directory.
I have this job in place
* * * * * tar -zcvfp /disk1/archives/websites/`date +%Y-%m-%d_%I-%M-%S-%p`/`date ...
0
votes
2answers
49 views
How can I prevent cron from filling up my root partition?
I'm using cron tasks every 3 mins, the result is logged in my cron.log. Also after executing (wget) certain php file, it's name (with 0 bytes filesize) is copied to root, spaming it - see the figure
...
3
votes
4answers
276 views
Bash script is not working as cron job
I have the following shell script
$cat capture.sh
TIME=$(date +"%H-%M-%d-%m-%y")
IP="203.208.198.29"
PREFIX=$TIME$IP
tshark -f "udp" -i eth0 -w /root/captures/$PREFIX.cap&
pid=$!
sleep 2m ...
2
votes
1answer
20 views
Dropping to cron like environment for debug purposes?
Cron scripts are executed in "limited" environment, PATH and co are very restrained.
How can I emulate this env setting from interactive shell so that I could debug scripts that work great from user ...
0
votes
2answers
17 views
Crontab crash when running a script that insert alot of lines in MySQL
My crontab is crashing when i run a script that insert alot of lines on MySQL Database, but when i run a script that inser few lines it run properly, is there some configuration file of cron? maybe ...
5
votes
4answers
121 views
Shifting cron job
Is there a way to set up cron job to be ran at intervals of one hour and one minute? E. g. 12:00, 13:01, 14:02, 15:03 and so on indefinitely. When it gets again at 12 hours it should execute job at ...
0
votes
1answer
65 views
What do do about PHP sess_ files not being cleaned up due to cron error?
I've been getting an error in cron like this:
CRON[17744]: (CRON) error (grandchild #17745 failed with exit status 1)
in syslogs. I ignored it for a while (brilliant, I know), and then suddenly my ...
-1
votes
1answer
44 views
Cron jobs starting, no finishing
We've just moved servers, from FreeBSD to CentOS. We have around 30 cron jobs which run throughout the day.
Since moving, it seems that some cron jobs are starting but not completing. We can see they ...
1
vote
7answers
171 views
mysql database daily backup on ubuntu server
I use crontab -e
in ubuntu server for running a backup.sh file every night at 02:00 AM. I wrote: 00 02 * * * root /home/backup.sh
Then /etc/init.d/cron restart
When do crontab -l it shows:00 02 * * * ...
2
votes
1answer
59 views
Expired “authentication token” for user with deleted password
The Setup:
1) The user's password was deleted with "passwd -d " command
2) The user has cron jobs running
The Problem:
Once every 30 days (default password expiration policy) the cron fails with an ...
0
votes
1answer
36 views
Lots of nfs4_reclaim_open_state: Lock reclaim failed entries in syslog
I have an Ubuntu 11.10 VM set up in VMSphere. I'm storing some data on a nfs mount. The VM has been going down frequently. I haven't been able to pin the reason why down, but I think it has to do with ...
0
votes
0answers
32 views
Crontab have permission issues on file of its owner? Permission denied
I have a very simple cron job written in shell script, which scp a file from another server to local.
e.g,
#!/bin/bash
scp $REMOTE:/$FILE ./
Of course, the server need a private key to login, ...
3
votes
3answers
69 views
Is there a good layout convention for cron files?
I'm currently confronted with a cron file that contains a dozen different applications' tasks--some have only one, some have lots. I'm trying to figure out a good way to organize and document these ...
3
votes
1answer
76 views
Odd log entries and insane bandwidth usage
I have a CentOS cloud server I use for testing and noticed that in the past 30 days, bandwidth out has gone through the roof (16,000 GB to be precise)
When I initially attempted to check on the ...
0
votes
1answer
49 views
Assistance with a backup solution.
I am currently needing to create a backup of something on my server. I zip the entire folder and it's about 1.5gb big...it has to be backed up every hour....
Alright so the size of the backup is ...
0
votes
1answer
35 views
Setting up inotify (incron) to monitor several directories using asterisk
I am trying to create an entry in /etc/incron.d/ that'd monitor all changes done under the following directories:
/var/www/virtualhosts/dev.anuary.com/*/*/public/css
Now, I assume this should be as ...
0
votes
1answer
65 views
Ubuntu - execute batch script after finishing ftp copy
I have a process that starts with an end user copying picture files to a Ubuntu folder over ftp using filezilla software. On the other hand I have a batch file that gets executed using CRON it is ...
0
votes
0answers
47 views
Run anacron even when on battery (laptop) [closed]
There is a known behavior of anacron not to run when the laptop is running on batteries. Is there any way to stop this behavior and run anacron whatever the power state?
...
0
votes
1answer
29 views
Can we list all possible reason for a cron job crashed or killed?
We have some cron jobs which cannot be dead otherise the consequence would be davastating. So we need to have an eye on the process and know exactly what cause the death of a job. So I would like to ...
0
votes
1answer
44 views
How to configure apticron to just report security / critical updates?
We're going to try out apticron, but we don't want to know about every package that could be updated -- only the security / critical updates. How do we configure apticron to do this?
PS -- yes, we ...
6
votes
2answers
243 views
Is it bad to edit cron file manually?
It is usually instructed to introduce new cron jobs through command lines; but I found it easier (with a better control of current cron tasks) to manually edit (in text editor) the user cron file like ...
0
votes
1answer
26 views
trac-admin hotcopy not working when run from crontab
I've recently updated Trac from 0.11.4 to 0.12.2. I'm using the following shell script to backup Trac installation:
#!/bin/sh
DIR=/root/backup/trac/
NAME=`date +%Y-%m-%d-%H-%M`
cd $DIR
trac-admin ...
5
votes
2answers
105 views
date +%s glitches
I have a strange issue I'm starting to troubleshoot and wondered if anyone would have any helpful tips.
I have a cronjob executed every minute that executes a script and appends the output to a file ...
0
votes
1answer
70 views
How to restart anacron every hour? [closed]
What is the proper way to restart anacron? I want to set it up to restart every hour. Would a crontab entry like do the job?
sudo crontab -e
@hourly anacron
Why is anacron initially started by ...
0
votes
0answers
56 views
Scheduled restart for mysql cluster
I have a 3 nodes, 1 replica ndb cluster and I need to restart all the nodes periodically. What do you suggest? What I need is a cron job that will do what I do with connectiong ndb_mgm and calling ...
1
vote
2answers
45 views
Run a job once at a specific time
I'm trying to create a cron that will run one time at a specific time.
For simplicity, how can I create a cron that will run at 11:57PM and print "Hello" to the screen then delete itself? (Cent OS 5)
...
0
votes
2answers
48 views
Creating a backup script involving screens and java?
Hi guys I use centOS 64bit 5.7 and I need to create a backup script
What I want it to do:
screen -r example
command into java
pause for x amount of seconds
exit screen
zip/rar a folder which and ...
0
votes
4answers
53 views
How do you schedule jobs across a server cluster?
We have jobs that run on single servers on various schedules, but we need to run them on a cluster of servers regardless of which server is going to run them. It is as if we need a cluster-aware CRON ...
1
vote
2answers
74 views
What alternatives to 'find' are there which will work in a cron environment in the rackspace cloud?
I am writing a shell script to run a mysql backup as a cron job and am hitting an issue with the find command not being supported in the rackspace cloud sites cron environment. Any attempt to use the ...
0
votes
3answers
65 views
throttle cpu usage for a cronjob
I've got a cronjob that is basically nothing more than mysqldump whatever | gzip > backup.sql.gz. The database is fairly big. I've noticed that while the job is running, my apache is much less ...
0
votes
1answer
45 views
Set php environment variable for cron via Plesk admin interface
Within our application we make use of a environment variable named SERVER_ENV that is used to set whether we are in a production or development environment. This is set through the httpd.conf file ...
2
votes
2answers
76 views
Cron job with $(date) command and redirect won't run
This is the cron job I'm trying to run nightly:
0 20 * * * /data/code/scripts/foo.sh >/root/foo.$(date +%Y-%m-%d-%T).log 2>&1
When I run it from the command line, it works fine. ...
0
votes
1answer
42 views
Any chance a crontab entry is deleted automatically after the entry is commented?
Maybe I'm mistaken, but it seems that every-time I commented out a crontab entry,
it will deleted automatically.
eg.
ssh server
crontab -e
// commented out an entry using "#"
// save and quit
Next ...
0
votes
2answers
83 views
Cron Job not running ( too many open files )
Sorry I may be a bit of a newbie here and I have never really ran any cron jobs.
Anyways, I am running an Arch Linux server which has cronie running on it and I have setup this cron job:
10 * * * * ...
1
vote
1answer
64 views
How do you set a DATE variable to use in a log for crontab output?
I was playing aroudn with some variations of date like
DATE = $(date)
but that didnt work either
crontab -e
CRONLOG=/tmp/log/crontab.log
DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S`
* * * * * echo ...
0
votes
1answer
131 views
Cron not able to find correct versions of ruby and bundler gem
I have cron running for rails application on EC2 instance, but it fails with error -
/bin/bash: bundle: command not found
if I run bundle command with ubuntu user or sudo user that works.
I have ...
0
votes
4answers
104 views
Does Nagios offer a “event logging” dashboard, if not, what should I use to monitor events?
I am using Nagios to monitor that a certain number of servers and processes stay online. This works well and I'm happy with it.
However, I would like a consolidated "event log" across the servers ...
1
vote
1answer
29 views
Check if cron ran and have fallback
I have written a realtime bus tracking program that runs a cron every minute to check the service of the bus. In order to remove some server resources I am going to be creating an instance on PHPfog ...
2
votes
3answers
109 views
How can I automatically sync files on my CentOS VM?
I have to keep copying files over from my ~/src to /home/httpd directory, which is a pain when I'm making front end changes. Is there a way I can have changed files sync automagically? -- and ...
0
votes
0answers
36 views
How many instances per server?
Basically i have a php script that listens for updates from a server, then acts on that info sending data back to the server based on settings the user makes in a control panel. It makes lots of ...
4
votes
2answers
72 views
Analyze and optimize crontabs
Is there a tool to graph, analyze and help optimize crontab execution?
To clarify, I'm thinking of a tool which would generate a graph of when cron jobs are executed, and help the sysadmin reorganize ...
1
vote
4answers
69 views
Crontab — scheduling my backups
I want to do a backup every Friday night (no, this is not the whole backup routine, just part of it). Each Friday night's backup will not be overwritten until 4 weeks later. So, essentially, I have a ...
0
votes
4answers
54 views
easily enable or disable cron
Whenever I need to enable crons, I will copy the cron file to the spool folder.
cp /home/shantanu/shantanu /var/spool/cron/
chown shantanu:root /var/spool/cron/shantanu
Will this work?
Any issues ...
0
votes
2answers
34 views
coordinating a script to run on only one of identical load-balanced servers
I have two identically configured CentOS 5 servers (possibly more in the future).
I need to run a cron job on any one of them and that it'll run only on one of them.
I know about RedHat Cluster Suite ...
-2
votes
2answers
58 views
Mutt, empty email account from command-line
trying to figure out a cli way to empty all email from a specific email account.
It is certainly possible to type:
mutt -f account
D
~s .*
then quit....
Is there a way to do this all from ...
0
votes
1answer
80 views
shell script within crontab
I can run the following shell script from command prompt as expected:
/bin/sh -xv /home/shantanu/backup_transfer.sh
But when I set it in a cron, it does not execute correctly.
There are 2 ...
0
votes
1answer
59 views
pfSense command to delete stale SAD
I'm experiencing an issue with pfSense where duplicate SAD's are getting created after rekeying, forcing me to manually go ahead and delete the old SAD's. It's not a huge issue but it does get to be a ...