0
votes
2answers
33 views

Debian webserver - Crontab error (not running php script)

I've a webserver with several sites and I'm trying to run a script by crontab but it gives me a error (126 and 127) My script is in: /var/www/site1/script.php When I run the command: php ...
0
votes
0answers
32 views

mysqldump not working/running via cron job

I have a crontask which runs at 1am every morning and dumps all databases. 0 1 * * * /var/backups/dumpit.sh 2>&1>> /var/backups/dumpit.log The dumpit.sh source: #!/bin/bash ...
1
vote
2answers
70 views

Run php script every 3 seconds

how can I set a cron job or a php script details to run a php script every 3 seconds between 11:30 PM and 12:30 AM (23:30 - 0:30)? Thank you very much for your help
0
votes
2answers
81 views

Start script.py after reboot as user xy in Debian Squeeze

How can i start a python script.py after a reboot as user xy in Debian Squeeze automatically?
-1
votes
1answer
36 views

Working from the prompt, but not from the cron job [duplicate]

I created a script which takes the IP configuration as input ifconfig | /usr/bin/python "/home/michel/Python/sendIp.py" When i type that in in the command prompt, the script gets executed well, and ...
1
vote
1answer
101 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
67 views

crons are not working, but scripts are… any idea what is it?

I checked on internet , this might be a common problem, but I dont know how to solve it, all things that they said are not my case... The cron is running, I checked, still, I have no log files (at ...
0
votes
5answers
71 views

Where to store custom php scripts called via cron

I want to move my php scripts out of the /var/www so that they are not accessible via a URL. But where is the most logical place to store these?
2
votes
2answers
81 views

Runing perl Script using root cron told me “access denied”

This comes from here Now it runs, but when i run it using the root crontab, it told me: *tail: /var/log/backupeitor.log: file truncated /bin/sh: /home/backup/scripts/backupeitor.pl: Permission ...
1
vote
2answers
101 views

libc segfault when running cron

I am trying to submit the job using drqueue's sendjob tool. When doing this from the terminal it works just fine. However, when doing this from cron, I get segmentation fault at libc (2.11.3-4). I ...
-1
votes
1answer
115 views

Optimizing DDNS service updates, currently updated every 5 minutes [closed]

I have a Raspberry PI, and I've setup a static local IP. I configured my router to redirect port 80 to raspi. I use DDNS service from Hurricane Electric, and their instructions was to call this in a ...
0
votes
0answers
31 views

cron exits, stops [duplicate]

Possible Duplicate: php-cgi got SIGKILL on burst.net VPS? On Debian Squeeze, cron stops running. /usr/sbin/cron isn't listed in the process list anymore and jobs aren't executed. This is ...
1
vote
3answers
150 views

Debian crontab doesn't run scripts

I'm having problems with setting my crontab script to run. When I execute it manually it works. My crontab file looks like this: 17 13 1-31 * 1-7 ...
-3
votes
1answer
99 views

Cronjob to move files using keywords [closed]

What will be the right cronjob command to move files from x folder to y folder based on a file name keywords? i'm using Debian 6.0 squeeze, and kinda new to cronjobs.
4
votes
3answers
295 views

Store Cron Jobs into a database

In order to build a system to maintain thousands of cron jobs on a Linux system, I'm facing the problem of being able to handle them in a scalable way. I need to use a database (I was thinking of ...
0
votes
1answer
189 views

How to execute cron through SSH terminal?

I've searched everywhere, but can't seem to find the answer. I'm trying to run this through Linux Debian SSH terminal 0 */5 * * * /var/www/test/cron.php And of course there should be some keyword ...
-4
votes
1answer
121 views

Cron and iptables [closed]

I am sorry. I have no understanding in server. I am getting tired of ddoses from one person. Basically I am asking how I can make a cron job that does: netstat -anp |grep 'tcp\|udp' | awk '{print ...
3
votes
2answers
563 views

Why is my cron daemon is being killed every few minutes?

As of about a week ago, my cron daemon refuses to stay running. I'm using Debian 6 x64 on an OpenVZ virtual machine. Running something like pgrep cron shows that the daemon isn't running. I start the ...
1
vote
2answers
95 views

cron task four hour later

I have this task in my crontab 0 14 * * * command but in my /var/log/syslog, I have Jun 21 19:00:01 debian-squeeze-base /USR/SBIN/CRON[12810]: (user) CMD (command) why the task run 5 hours ...
0
votes
3answers
96 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 ...
5
votes
4answers
673 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).
0
votes
1answer
254 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 ...
1
vote
2answers
64 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 ...
0
votes
3answers
288 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: ...
1
vote
2answers
530 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
2answers
267 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 ...
0
votes
1answer
267 views

LDAP backup script only send email if error

I am using this script to backup the LDAP daily via cronjob. Is it possible to modify the script to only send a email if there has been an error. Copy of email sent daily * Create data directory: ...
0
votes
2answers
1k views

cron doesn't execute it's commands

I created an own small server with Debian. Last night i updated it. It created an error while generating the initrd and it didn't boot. Today i booted from another filesystem and did dpkg --configure ...
2
votes
1answer
78 views

What does the rm -rf recur do, when used in a cron?

I have a basic understanding of cron jobs, but I came across a tutorial today which recommends adding: 30 3 * * * wget http://www.mywebsite.com/bamboodir/index.php/recur 31 3 * * * rm -rf recur ...
1
vote
2answers
184 views

Send weekly email with breakdown of hard disk space used/free

I would like a bash script that sends me a weekly email displaying the breakdown of disk space used based on a array of file list. Would this be possible using the df -h Had a look on Google to find ...
0
votes
1answer
87 views

gitosis crontab using public/private key pairs

I have a debian server (2.6.18-6-686, etch) set up with gitosis (0.2+20080825-2) installed. Everything works just fine, but my problem is that when I clone and pull any repository it requests the ...
0
votes
2answers
978 views

How to make a minutely cronjob on debian?

How to make a minutely cronjob on debian? Can someone help me? The "action" should be "php /var/www/cronjob/index.php" i have no idea!
0
votes
1answer
128 views

Using a link to a crontab file located elsewhere than /etc/crontab (Debian)

I have an EC2 instance in AWS. As you know, if my instance crashes I lose all data located in the local EC2 hard drive. Of course I have an EBS for my data, but /etc is located in the ...
0
votes
3answers
527 views

PHP-FASTCGI hangs with nginx, is there a better solution to this problem?

Currently I have a cron that restarts PHP-FASTCGI every 15 minutes but.....yea. 64 bit - Debian 5 nginx 0.6.32
-4
votes
5answers
578 views

Run Cron Every Hour Debian

How can I setup a cron job in debian to run a certain url once every hour. There`s no control panel or anything.
5
votes
2answers
280 views

Weekly cron executing 2 times:

I have placed a .sh file that runs a php script weekly. This script should run only once, but every sunday it runs at: 1:30 am 6:50 am Any way to fix this? OH CRAP in the first email the user ...
2
votes
2answers
876 views

apache restarted/reloaded config by itself automatically, why?

in short: running production webserver tuesday: changed config (the change was erroneous, wrong syntax) but deliberately not restarted apache apache restarted or reloaded config by itself today ...
2
votes
3answers
380 views

knowning how much time is left before cron weekly runs?

I am on debian 6. Any way to see how many days are left before the cron weekly starts?
4
votes
4answers
745 views

Crontab definitions disappearing

I'm running a Debian server on EC2, and a few days ago my crontab definitions suddenly disappeared. Just vanished without provocation! Any ideas what can be responsible for that? I don't suspect any ...
1
vote
2answers
401 views

executing a sh script from the cron

I have a test.sh script #!/bin/sh php /home/v/file.php sh /root/x/some.sh when I execute the file as root from command line it works. sh /home/v/test.sh when I set it to crontab -e (is the root ...
0
votes
2answers
351 views

crontab not running at specific time, but runs every min

I want to run a cron job every day at 8:10pm. 10 20 * * * curl -s -o /dev/null http://www.domain.com/blah.php however, it doesn't work. If I try to run it every minutes: * * * * * curl -s -o ...
0
votes
2answers
292 views

Not all cron jobs runs properly

I have the big strange trouble - yesterday i have 3 my cron jobs working properly. But today - only 2. And there is a problem - i have all cron jobs using php like this: /usr/bin/php5 ...
2
votes
3answers
1k views

cron+pam heavily spamming my logs

Two times every minute I get this in auth.log: May 12 15:21:01 ruptai CRON[25303]: pam_unix(cron:session): session opened for user root by (uid=0) May 12 15:21:01 ruptai CRON[25303]: ...
9
votes
11answers
2k views

Is it safe to run apt-get update every night?

Is it safe to run apt-get update -y through cron on a production server?
0
votes
2answers
192 views

Crontab problem

under debian as a root (using su -) First of all there is already a job inside the server (done by someone else), when I type crontab -e I get # m h dom mon dow command * * * * * sh ...
3
votes
6answers
4k views

Not all cron jobs in /etc/cron.daily are running

I have a Debian GNU/Linux 4.0 box (that cannot be upgraded) running 24x7. It has several jobs in /etc/cron.daily, including our backup scripts. I noticed several weeks ago that the backup script was ...
4
votes
5answers
3k views

Why would anacron not be running?

I have a Ubuntu system that has anacron installed. However I'm pretty sure it's not running. It's not running the commands in /etc/cron.daily to rotate the syslog files (I'm using sysklog, which has ...
0
votes
3answers
397 views

Cronjob executing multiple times at once

I have a cronjob similar to this: */1 * * * * /usr/bin/python /home/root/test.py >> /home/root/spring.1 In test.py, I am just printing the current time. After few mins of observation, I see this in ...
1
vote
2answers
821 views

How to write this simple cronjob in Linux (Debian)?

I need assistance in getting a cronjob to run properly in Linux (Debian). (This is my first one). I need a file to "run" once per hour a set number of times. I got this far: crontab -e no crontab ...
2
votes
3answers
822 views

Init.d vs Cron - which to use?

I'm writing a silly little script to email people when a (Debian Lenny) server boots. Right now I've set it up as an init.d script using update-rc.d, but then I realized I could have just used cron ...

1 2