-1
votes
1answer
21 views

Scheduled Task issue - /usr/bin/php/: No such file or directory

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
0
votes
4answers
81 views

cron job executing script [duplicate]

I have created a script that works as expected in shell but cron job does not seem to run it. when I check my cron mail, I see that it prints "hltv is not running" but does not create a screen ...
-1
votes
1answer
36 views

Crontab not executing [duplicate]

I'm running CentOS 6.2, trying to run tasks through cron. I've verified crond is running $ service crond status crond (pid 20553) is running... I have no /etc/cron.allow file, but I do have an ...
0
votes
2answers
135 views

Why unison does not run in cronjob?

I want two way data sync between two CentOS based servers, so I installed Unison on both of my CentOS servers. I made a script file on root which runs unison and works fine, and syncs the files, when ...
1
vote
2answers
141 views

How does Cron interact with Kerberos for authentication?

I have a CentOS 6.4 machine which is set up with pam_ldap and pam_krb5. It is configured to use our Active Directory servers for authentication. I can SSH into the machine using AD accounts. I have ...
0
votes
0answers
46 views

Cron Jobs unable to deliver email error report

I am sure I have right syntax and I am still unable to receive report emails to my email address. My OS is CentOS 6.4. My Crontab script is MAILTO="cron@mydomain.com" * * * * * /usr/bin/php5 ...
0
votes
2answers
492 views

Centos backup mysql using cron job

According to this tutorial http://www.a2hosting.com/kb/getting-started-guide/backing-up-your-data/backups-on-dedicated-servers-and-vps trying to backup mysql database I did: 1) created folders in ...
-2
votes
1answer
59 views

CentOS 6.3: logrotate and btmp

I had to configure logrotate on a server configured by other system-network administration. First of all I detected that there is no crond, so I had to install sudo yum install vixie-cron. All other ...
1
vote
1answer
784 views

What cron job is /usr/lib/sa/sa1

I have logwatch enabled for my machine. Suddenly I see this line in my logwatch /usr/lib64/sa/sa1 1 1 : 4297 times /usr/lib64/sa/sa2 -A : 29 times run-part /etc/cron.hourly : 716 I tried crontab -e ...
2
votes
2answers
167 views

check if process is running, even under cron

I have a cron job that runs every minute, but if it finds data, might take many minutes to finish. I need to tell if another instance of the script is running from another. To make things even more ...
4
votes
1answer
85 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 ...
-1
votes
1answer
239 views

Plesk cron iOS notifications randomly stopped working [closed]

Recently, I started getting these cron error from Plesk. This cron controls push notifications to Plesk Manager on my iPhone/iPad. Obviously, turning off the cron stops the error but I want the cron ...
6
votes
1answer
317 views

how to execute a command on the first, second, third and fourth Sunday of the month with crontab [duplicate]

I have 4 servers and I want each one of them to execute a reboot on Sunday. Server 1 - first Sunday of the month (first week) Server 2 - Second Sunday of the month (2nd week) Server 3 - third Sunday ...
-1
votes
2answers
144 views

mysqldump in cron not working [duplicate]

I am trying to do a mysqldump on the cron for every 5 minutes but it seems that it is not working. I try to execute the mysqldump and it works fine. mysqldump mysqldump -uroot -ppassword ...
0
votes
2answers
267 views

centos cron logs are not executed

I have been trying to setup a cronjob on centos but doesn't seems to work. I have been deleting the crons logfile to see all newly created logs and I have been restarting crond but /var/log/conf ...
0
votes
2answers
633 views

Crontab not sending e-mail with output [duplicate]

I'm having a strange problem here with crontab. I have set up the crontab correctly to run the cron job as follows: [user@user ~]$ crontab -e SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin ...
0
votes
0answers
105 views

Contab running multiple times every minute CentOS

I have two crontabs setup on my server. One that runs every minute and one that runs every 5 minutes. */5 * * * * ~/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path=/ ...
-1
votes
2answers
90 views

Centos 5 - Configuring a crontab PHP job [duplicate]

I'm running a CentOS 5 server, and trying to schedule a job which runs a php file every day at the same time, I've added a new file to the directory /etc/cron.d/ called get_files The get_files ...
0
votes
1answer
45 views

Centos: List all cron jobs in a week ordered by date

I'm trying to get all cron jobs in the current week (or from monday to sunday) ordered by schedule time. I'm trying with some elaboration on the output of the command crontab -l I appreciate ...
0
votes
1answer
149 views

Mysql select query not generating result on cron but is ok via terminal

We have a C program (source is below). We compile it with: gcc -Wall -Wextra -g $(mysql_config --cflags) get1ReceiveSource.c $(mysql_config --libs) -lrt -o get1Receive The select give results ...
1
vote
3answers
97 views

Cron - Does not execute command every 10 mins

I don't understand why cron is not really executing the command every 10 minutes. in crontab -e I have added: */10 * * * * /var/www/myproject/recording/batch.pl I could see in the cron log it is ...
0
votes
1answer
205 views

Cron permissions?

I have a bash script which if I run manually (as root) performs all of its tasks without issue. The tasks are just a few php scripts and then a "mv" to move the process file to a temporary folder. ...
1
vote
2answers
428 views

shell script in crontab, not all output being logged

I've got a simple shell script that runs a few LFTP commands and processes the files. When running straight from bash I get full output of those LFTP commands on screen. When running from crontab ...
0
votes
2answers
135 views

Cron Email Locally

I have my crontab configured to mail to a specific address, for example purposes lets say "test@test.com". test.com is also the host name of my box, however I have my mx email records configured ...
1
vote
0answers
724 views

Logrotate doesn't work from cron on CentOS

I have lograotate configured on CentOS 6. It works fine when I run it manually, but with CRON it doesn't work. Cron says in its logs: "All fine, I run you command" but nothing happens. Details: cat ...
0
votes
2answers
417 views

Configure a Sendmail subject using crontab

My cron job is running the following line: */40 * * * * cd /home/qa/prod/seo/casino && make testv 2> /dev/stdout | /usr/sbin/sendmail -t xxxx@gmail.com As you can see I am using the ...
-2
votes
2answers
61 views

cron job allowed commands

i can use this command in cron job cat /etc/passwd its send my an email about all users info how i can see allowed command? like cat ! can i use service httpd restart? ( i test it and i cant) ...
-1
votes
2answers
163 views

copy cron job from one domain to another on same server

I have just set up the .com of a domain that previous ran on .co.uk on the same server, I have copied all the files, ran through them using bash to change the domain anywhere it was referenced, same ...
2
votes
3answers
2k views

Why does my CentOS logrotate run at random times?

I put a logrotate configuration file in /etc/logrotate.d/ and expected the logs to rotate at a consistent time; however, they do not... log rotation times are seemingly random +/- one hour. Why are ...
1
vote
1answer
120 views

script executing perfectly in terminal but not in cron

I setup a script for to take an mysql db backup everyday on a specific time, so now the cron is running perfectly it executing the script without problem but the problem is db backup file is not ...
3
votes
3answers
266 views

Setting up logging for a remote backup script

So I wrote up a short script that I am planning to run via a cron job daily to package up my site files and send them to a remote location. I also plan to incorporate DB dumps, but I have not gotten ...
0
votes
2answers
379 views

crontab: command not found in CentOS

I tried to setup a cron job in my new CentOS VPS server over SSH. I typed in the command crontab -e and I got the following error message:- -bash: anacrontab: command not found Any idea how I can ...
2
votes
2answers
351 views

Cron not running CentOS

What am I doing wrong here? Trying to set a cron job to run a shell script but it won't work. I entered the below after doing crontab -e. It does show up when doing contrab -l. 0 2 * * * root ...
1
vote
4answers
169 views

Is it possible to delete the last line within a file using a command?

I've accidently distributed a line to /etc/crontab on many servers and i noticed that there's a typo in this line and i need to change it on all servers.
1
vote
1answer
194 views

Pause cronjobs for an account (WHM/cpanel)

Is it possible to stop all cronjobs for a particular cpanel user? The cronjobs should be resumable when required later. There are several hundred cronjobs running under this user. Only this user's ...
1
vote
3answers
252 views

Sending an email via cron

I'd like some advice on how best to send an email after running a SQL query. Every day, I would like to run a PHP/SQL script to identify users who should be emailed. After this runs, I would like to ...
1
vote
2answers
809 views

Why isn't my cronjob running?

I have a cronjob in /etc/cron.d/mycron that looks like this: 0 3 * * * apache php /path/to/my/script.php In the same file there are other cronjobs begin run as root and other users (which ...
0
votes
2answers
2k views

What service reads /etc/security/access.conf?

I'm trying to get to the bottom of an issue with a non-root user running a cron job and I've stumbled upon /etc/security/access.conf. I have a couple of questions: What service reads this file? Do ...
2
votes
2answers
442 views

CentOS 5 cron error when stopping/starting a service in crontab

What's the best way to stop/start a particular service on a schedule using cron? I tried running service servicename stop in a cron job but that didn't appear to work so switched to ...
0
votes
1answer
277 views

Linux CentOs 2.6.18 Setting locale for cronjobs

I have the problem, that I am trying to automate some Informix database job via the crontab. The job runs fine when done via the command line or processed via the at queue, but not via the crontab. ...
-2
votes
1answer
558 views

Particular crontab not working on centos 6.2

I have 3 cronjob set to work on reboot. When I reboot only 2 works and the 3rd one does not work. What could be stopping it from working? Where to get the clues? All of it I have redirection for the ...
2
votes
4answers
262 views

crontab schedules and cron jobs

I've put two files in the /etc/cron.d/ directory: The first makes a new post everyday at 12:00AM: 0 0 * * * php /var/www/site1/helper post:make The second updates the latest post every 10 minutes ...
1
vote
2answers
593 views

copy cron jobs from one server to another server - using bash prefereable

I have recently done a migration from on dedicated centos server to another dedicated centos server. There were few backup cron jobs was runing on my old server. I would like to copy them to new ...
-1
votes
1answer
174 views

RKHunter and CHKRootkit Hunter

Is it possible for them to only send an email if something is found? I've never had them find something but the emails get annoying when they come in every day and you have to check them.
2
votes
3answers
273 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
2answers
611 views

linux crond not working

I have a cronjob which for creat thumbnails. the folder /var/www/html/work/ has permission 744(I think 744 is more safe than 777) Crontabs * * * * * /usr/bin/php /var/www/html/work/images.php php ...
-1
votes
1answer
110 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 ...
0
votes
1answer
116 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
287 views

How to give permission to an account to reboot server?

I use centOS 5.7 and I need an account I have on the server to be able to reboot the server. How do I do this? Should I maybe be worried about security issues with this? The reason I need it...I ...
1
vote
1answer
2k 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 ...