6
votes
1answer
60 views

Processes hanging indefinitely when calling read(2)

I have several Debian (Wheezy, x86_64) servers all exhibiting the following behavior: All of the servers have a set of cron jobs that, among other things, pull data from S3. These usually run fine, ...
0
votes
0answers
16 views

How do you setup a solid CRON job for a PHP process? [duplicate]

After lots of googling I have come up with something like the following to execute a PHP process every hour. However, it doesn't seem to work and there doesn't appear to be any errors in the syslog or ...
0
votes
2answers
59 views

Cronjob screen PHP does not executed [duplicate]

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a ...
0
votes
1answer
303 views

Cron won't use msmtp to send emails in case of failed cronjob

I'm trying to configure a machine so that it will send me an email if one of the cronjobs output something in case of an error. I'm using Debian Wheezy. Cron is working normally (without the email ...
-1
votes
1answer
83 views

Understanding my Cronjob and the logs (Debian) [closed]

I'd like my cronjob to run every 5 minutes. It should execute a command which a user can only run from a certain directory. In my:/home/alias/laravel/ directory, I can manually run (as user alias) ...
0
votes
1answer
115 views

cron job not running the script that start vncserver

Hi I wrote a script to start my vncserver when I call it manually via command line. It works as follows: the script is in usr/bin I gave it the right authorization (chmod u+x startvnc) but wen I ...
0
votes
1answer
189 views

Issue with ifconfig in a shell script (using cron)

If I execute this script manually in Debian: #!/bin/bash /sbin/ifconfig wlan0 down /sbin/ifconfig wlan0 up sudo iwconfig wlan0 essid "WLAN_NETWORK" sudo iwconfig wlan0 key myPassword sudo dhclient ...
1
vote
1answer
53 views

Cronjobs putting archive in wrong directory

I am running a website on an Amazon ec2 instance running the default Debian linux. I set up a cronjob to copy the site files, take a database imprint, and zip them up. I want to keep the file ...
0
votes
2answers
384 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 ...
1
vote
0answers
201 views

mysqldump not working/running via cron job [duplicate]

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
162 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
296 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
67 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
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 ...
0
votes
3answers
99 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
91 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
148 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
121 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
vote
3answers
226 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
125 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
579 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
235 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
179 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
816 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
109 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
120 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 ...
6
votes
4answers
1k 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
392 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
70 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
452 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
876 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
446 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
327 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
2k views

cron doesn't execute its commands [duplicate]

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
102 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
304 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
103 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
2k 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
146 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
665 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
987 views

Run Cron Every Hour Debian [duplicate]

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
288 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
1k 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 ...
3
votes
3answers
491 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
1k 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
766 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
449 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
364 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
2k 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?