Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
5answers
41 views

crontab schedule for every X hour

When scheduling a job every x hours, how to tell which hours will be picked? For example, we have a cronjob set for */8 which is run at 2AM, 10AM, etc. instead of midnight, 8AM, etc.
0
votes
1answer
16 views

What is considered as output when running a PHP script cron job?

I am running a PHP script which inserts lines in a database every minute, using a cron job. My provider says: An email will be sent to this address ONLY if your cron produces output. If no output is ...
1
vote
2answers
49 views

Generate automated cron jobs at different hours

Greetings I'm new to cron. Is it possible to run automated cron jobs at random minutes for every hour? the syntax should be different every day, for example: ...
0
votes
1answer
27 views

Configure CRON to use a particular MTA

I have one server on which cron jobs are ran. I don't want to install sendmail or postfix on this server but still want to get mails from cron. I have installed Heirloom mailx ...
0
votes
4answers
33 views

Distributed cron

I maintain many servers and have the following requirements Run a unix process at a given time Run a unix process at boot time and keep it running (in case it dies) Disable a running process I am ...
1
vote
0answers
27 views

Looking for a “file/dir modification tracker” software for linux

I am looking for a tool that could ease tracking of file modification times of a number of files/directories placed on NFS mounts. The idea is that in a multi-user environment where some files are ...
0
votes
1answer
132 views

Synology cron job not working

I am not sure where to ask this question but I'll ask here first. I've got a Synology DS211 server and I am trying to run cron jobs but it is not working. This is the code I got in the crontab file ...
0
votes
3answers
45 views

cron script won't delete files? [closed]

I copied this from a blog entry, studied it, tweaked it a bit and more or less it works: #!/bin/bash GZ_DATE=`date +%Y%m%d` GZ_TIME=`date +%H` BK_PATH=/mnt/usbbk/sql ...
1
vote
0answers
14 views

php script ran from crontab times out if other scripts are ran at the same time [migrated]

I have a server in my room with a duo-core processor and basic internet (nothing fancy) I'm running ubuntu 11.04 and I'm running a php script from the crontab. 0 3 * * * php back_up_to_s3.php This ...
5
votes
4answers
103 views

cron jobs with the same execution time

Suppose I have several cron jobs set up to run at the same time: do they execute in parallel or just one after another? (My case is Debian squeeze with cronjobs put inside /etc/cron.d/mycronjobs).
1
vote
0answers
16 views

jenkins security settings for multi-tennacy

I am interested in Jenkins for systems administration. (We are not that interested in the building capabilities at this time, even though it is the main use for it) Its ability to chain jobs that ...
-3
votes
1answer
37 views

Daily Cron Job Example

I want to run a command daily on an Ubuntu Linux box @ 9:15PM. Is this the correct entry for my crontab? 15 23 * * * <<command>>
0
votes
2answers
15 views

cron time is not correct or cron is running with delay

my cron jobs are executed half an hour later than when they are supposed to. Does cron refer to the system time when it executes its jobs or refers to its own time(if it has one)?
0
votes
0answers
61 views

Apache randomly fails to restart (port 80 in use) .. Probably cron related?

So this started happening for no apparent reason on a RHEL5 server running Plesk 10. I woke up one morning to find all the sites hosted on this box were offline. I SSH'd in and restarted httpd - ...
0
votes
1answer
48 views

Debain cron help accessing a URL

The documentation says that I need to: If your hosting account is on LINUX/UNIX system you can setup a CRON job to point to this URL http://yourUrlToThisScript.com/cron.php?cron=do&d=31 ...
0
votes
1answer
51 views

Virtual server (VM) running Ubuntu re-configures itself?

I'm helping to administer a VM running Ubuntu with Media Temple. The hostname was changed, and sendmail was removed and replaced with exim4. To change the hostname 'sudo hostname newhostname' was ...
1
vote
2answers
30 views

Manage cron to clear cached directories

What would be the best way to manage a cron job which deletes files from multiple locations every week? When I say manage, I mean the different locations ideally this would work best in a MySQL ...
1
vote
2answers
74 views

script to remove all files in /tmp from a certain user

One of my server daemons uses a lot of space in /tmp. Because I don't want to reboot my machine when the server runs out of disk space, I need to run a CRON script that removes old temporary files. ...
1
vote
1answer
82 views

Rsync inconsistency between CLI and crontab

I want to use rsync to synchronise my home folder with a "backup" copy on another drive on an Ubuntu 11.10 machine. And I want it to happen every 15 minutes. If I manually run: rsync -ar --delete ...
2
votes
3answers
63 views

Cron doesn't execute command after % sign in it

I have the following command in cron: 5 6 * * * bash -c "tar -czf /backups/sites-server-files-rotate/sites_`date +%F`.tar.gz /backups/sites-server-files/" But command doesn't get executed. And I ...
2
votes
3answers
78 views

fastest way to backup webserver files and mysql db and automate

I would like to setup a cron job for to backup all my web server files to a compressed file and also my MYSQL db. I have full acces to my server as it is a VPS. I am a noob at linux and could really ...
0
votes
1answer
32 views

Java creates three seperate log files with FileHandler, but only when run via cron

Pretty strange problem I've got. I'm running a small java application every 10 minutes to do some database work. It logs its activity in a file. This works perfectly well except when it's run as a ...
1
vote
3answers
43 views

Some $_SERVER parameters missing when accessing PHP script via Cron

I have a script that I need to run with PHP via cron. The original author of the script made a lot of user of certain $_SERVER parameters (like REQUEST_URI). But it appears that certain variables ...
1
vote
2answers
156 views

What's the advantage of using a bash script for cron jobs?

From my understanding you can write your crons by editing crontab -e I've found several sources that instead refer to a bash script in the cron job, rather than writing a job line for line. Is the ...
2
votes
2answers
117 views

403 forbidden error from cron

I have some php code that runs fine in a browser but now I want to use the same code and execute it from a cron script I'm getting issues. i tried the command on cron wget -O /dev/null ...
10
votes
4answers
333 views

How to schedule server jobs more intelligently than with cron?

I run a job every minute to reindex my site's content. Today, the search engine died, and when I logged in there were hundreds of orphan processes that had been started by cron. Is there another ...
0
votes
1answer
62 views

Cron job failing to backing up a Postgres database

I'm unsure what's going on here: I've got a backup script which runs fine under root. It produces a >300kb database dump in the proper directory. When running it as a cron job with exactly the same ...
0
votes
2answers
51 views

difference between /usr/bin/php and php in crontab

What is the difference between specifying "/usr/bin/php" and just using "php" when setting up a PHP script to run in my crontab? I would tend to just use "php" rather than the full path. 30 16 * * * ...
0
votes
4answers
113 views

Cronjob working every 5 minutes, but not at a given specific time

I have a strange problem. Using Debian 6 and crontab -e (as root),the following cronjob works just fine: */5 * * * * bin/sh /root/backup but it does not work if I set it to run at a specific time: ...
3
votes
4answers
79 views

`find` command not available in web host, how to implement a delete based on modification time using other commands?

I'm creating a simple datebase backup solution for a client using web hosting at DataFlame. The web hosting account provides access to cron but not a shell. I have a database backup script creating ...
0
votes
2answers
53 views

My CRON job won't run, any ideas?

I've installed the following CRON job using 'crontab -e' through putty on my server, but it won't run and I have no idea why. This is the line I'm putting in and saving using 'crontab -e': 00 09-18 ...
1
vote
2answers
65 views

Cron Expression Notation

I want to write a cron expression to run every 30 minutes for the last week of every month. I know to do the final Sunday for instance the cron is 0 0/30 * ? * 0L When I try to comma separate the ...
4
votes
1answer
85 views

cron job timing

I would like to start cron job at 9:30 and then work every 5 minutes and then stop at 16:30 everday. Is this kind of scheduling possible in one or do I have to need two cron jobs?
1
vote
2answers
95 views

Cron not running commands as root

I have a file called /scripts/checkInternet and it contains: #!/bin/bash WGET="/usr/bin/wget" rm /tmp/index.google $WGET -q --tries=10 --timeout=5 http://www.google.com -O ...
2
votes
3answers
100 views

Escaping characters in cron

The following works as expected from the command prompt. But it does not work from cron. mysqldumpslow <(tail -1000 `mysqladmin variables \ | grep slow_query_log_file | awk '{print $4}'`) \ ...
0
votes
2answers
86 views

BASH store values in an array and check difference of each value

[CentOS, BASH, cron] Is there a method to declare variants that would keep even when system restarts? The scenario is to snmpwalk interface I/O errors and store the values in an array. A cron job to ...
2
votes
2answers
78 views

Crontab is failing every five minutes

One of my server (that is running Debian) is getting these error every 5 minute CRON[28355]: (CRON) error (grandchild #28357 failed with exit status 1) I can't figure out, where it comes from, so ...
1
vote
3answers
80 views

changing default shell to /bin/bash of at job scheduler like in CRON

Is there a way to change the initial shell used by the atd job scheduling service? Esp. in Ubuntu. at by default uses /bin/sh in every Linux and Solaris I've deployed products on. GNU's crontab ...
1
vote
2answers
165 views

I out-clevered myself this time: Cron Emails

At some point I did something magical to redirect email from cron (on CentOS 5.6) to an external email address (me@oldaddress.com). Now I want the cron emails to go to a different address ...
0
votes
1answer
101 views

Cron, chroot, jails, and permissions

I'm trying to grasp how to run crons under chrooted users. I'm on Ubuntu, and using ISPConfig where I can. I created a cronjob in ISPConfig which resulted in a file /etc/cron.d/ispc_chrooted_web1 ...
1
vote
5answers
164 views

Alternative to cron

I am unhappy with cron on linux. Load peaks: @hourly jobs create load peaks. I want a random offset (per job). high load: skip some jobs: If the load is too high, I want to skip some jobs. I could ...
0
votes
1answer
123 views

ISPconfig and running cron jobs as root

IPSConfig runs cron jobs as root. And when adding new cron jobs in ISPconfig it sets them to also be run as root and I don't see any way to change it. Is this safe?
1
vote
1answer
73 views

enabling crontab job for user CentOS 5.x?

cat /etc/cron.allow root neolix john We have added a user to run their crontab job in CentOS 5.x, still they are not able to run the job. If any thing missing from by us, Please feel free to teacher ...
1
vote
1answer
35 views

Facing issue with cron on embedded linux

I have a SAM9 based board running embedded linux using buildroot package. I added the crond and crontab support to busybox from make menuconfig and built the rootfs and flashed it to my board. The ...
0
votes
1answer
58 views

Where does Cron checks the time zone on Debian?

I have seen number of topics that are related to my question, but non of them answers it. Where does Cron look-up the time zone ? root@awesome:~# date Fri Feb 17 14:02:02 EET 2012 root@awesome:~# ...
3
votes
4answers
209 views

Crontab to restart service

I am running a web server on an AWS EC2 micro instance. The instance has ~630MB of RAM. With time, I have several httpd processes and very little free RAM. When I restart the httpd service, I end up ...
5
votes
5answers
414 views

Setting up a cron job that does a chmod/chown

I would like to set up a cron job that recusively does a chmod/chown on a directory (the dropbox directory). This works when I execute the commands manually like: sudo chown -R $USER ~/Dropbox sudo ...
0
votes
1answer
106 views

Cron job failing on Ubuntu VPS

I have a newly setup Ubuntu VPS that has logcheck installed. Every hour I am getting a email with the following entries: Feb 15 19:09:01 zeus CRON[4626]: (CRON) error (grandchild #4627 failed with ...
-2
votes
2answers
78 views

Cron job on Justhost not accepting parameters

I have a PHP web app on Justhost (webhosting provider). This PHP web app uses the Codeigniter framework. To run cron jobs on this web app (http://codeigniter.com/user_guide/general/cli.html): php ...
1
vote
1answer
130 views

Using AutoMySQLBackup on Rackspace Cloud

Since Rackspace Cloud only allows FTP access it makes using AutoMySQLBackup a little trickier, and while it is at least creating DB dumps I get errors in the backup log: ###### WARNING ###### Errors ...

1 2 3 4 5 12