CentOS 5 :: Cron Entries Not Executing?

Jun 2, 2010

I'm trying to add several cron jobs. I have a folder (/etc/cron.myapp) with several subfolders in it (30minute, 3minute, daily, hourly). Each of these folders contains a script.Runnng/usr/bin/run-parts /etc/cron.myapp/3minute/will execute the contents of that folder.I have tried adding the following entries to /etc/crontab with no luck, and nothing is showing up in /var/log/cron

*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute/
*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute
*/3 * * * * root /usr/bin/run-parts /etc/cron.myapp/3minute/

[code]....

View 3 Replies


ADVERTISEMENT

Ubuntu :: Do Cron Updates Erase Cron Entries

Sep 19, 2010

I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.

View 2 Replies View Related

Debian :: Executing Scripts From Cron ?

Oct 1, 2009

I am adding the following scripts to cron via crontab -e (as user)

Quote:

The first one is to record tv. I've added dev/null 2>&1 at the end. No too clear why but without it, it records only a few seconds.

The second script is (as you should already noticed) to turn off my computer at 6:25 am. It doesn't work (with or without dev/null 2>&1). I am surely forgetting something important. Could you please tell me what is it?

View 6 Replies View Related

Ubuntu :: Cron Script Not Properly Executing?

Jun 5, 2010

so sorry about this seemingly silly cron question. I know a lot are asked, and are usually just environment related.Anyway, I wrote a very simple PHP script to mount my external drive to a specific location as soon as it's switched on.The script works great when run.What's strange, is that it runs in cron and generates a log file, but for someone reason doesn't mount the drive when cron runs itI added in the full path to EVERYTHING in the script, and I'm calling it with the full path from crontab, but it doesn't mount my drive when run from cron.I've tried running the individual commands on the cmd, and it all works.

View 9 Replies View Related

Ubuntu :: Cron Daemon Is Running But The Command Isn't Executing?

Mar 28, 2011

I was just curious if cron had to be enabled before use. i have a crontab, and the cron daemon is running, but the command isn't executing...

View 9 Replies View Related

Server :: MySQL Backup Cron Job Not Executing Correctly?

Mar 2, 2011

I own a CentOS 5 VPS. I typed crontab -e, and then I added the following line to automatically have my server backup mysql

0 * * * * mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

When I go in and look, it doesn't place any files in /home/dbbackup. When I run

mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

View 3 Replies View Related

Fedora :: Cron Job (Play Media File At Certain Time) Not Executing

Nov 6, 2009

I wanted to use cron to play a media file at a certain time (i.e. use it as an alarm clock). However it seems to do nothing. The contents of my crontab is:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
5 11 * * * env DISPLAY=:0.0 /usr/bin/totem /path_to_file

View 2 Replies View Related

OpenSUSE :: Unwanted Cron Job /var/log/messages Entries?

Apr 6, 2010

I'm setting up a logging script to track utilization on our deployed systems. I'm running it every minute using cron. Each time it runs, I get an entry in /var/log/messages telling me it ran. That is a lot of useless information. Is there a way to prevent the creation of these log entries?

View 1 Replies View Related

CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I have set up a cron in /var/spool/cron/root

*/15 * * * * /usr/bin/phplist.sh

I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.

If I run /usr/bin/phplist.sh right in the shell it works great.

View 3 Replies View Related

CentOS 5 :: Executing Bash_profile Everytime?

Jul 21, 2010

I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]....

View 1 Replies View Related

CentOS 5 Server :: Crond Not Executing Script

Dec 5, 2009

I have a php script that i made to check if the internet is working and if not, it should execute a command that starts a service on my server (service jistarter start), and i want to run it every 3 minutes, so i added it to the crontab, this is how it looks:

The problem is that cron isn't executing it or something.. i don't know but the service it was intended to start, doesn't start.

The thing is that the script runs fine when i run it myself, in all the 3 methods it woks fine: "/usr/bin/php /srv/checkping.php" or "php /srv/checkping.php" or "/srv/checkping,php" (it has chmod 755):

This is the file:

View 2 Replies View Related

CentOS 5 :: Executing Bash On External Drive

Jun 7, 2010

I have a CentOS system totally devoted to a 500GB disk. I have an additional disk mounted via an external device that will not execute scripts that are located on that device.

Current hardware configuration:
Quote:
t [root@localhost ~]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60801 488279610 8e Linux LVM

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 42261 339457466+ 83 Linux
/dev/sdd2 42261 60801 148925985+ 5 Extended
/dev/sdd5 59372 60801 11486443+ 82 Linux swap / Solaris
/dev/sdd6 42261 58671 131814400 83 Linux
/dev/sdd7 58671 59371 5623808 82 Linux swap / Solaris

Partition table entries are not in disk order
[root@localhost ~]# uname -a
Linux localhost 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

View 17 Replies View Related

CentOS 5 :: System/administration Menu Has 2x 'hardware' Entries

Mar 29, 2009

simple installs of CentOS5.2 i386 on 2x Dell C640's and x86-64 on a Dell dimension 9150 resulted in the System/Administration menu offering two entries each with the name 'hardware' and the icon showing a little chip hovering over a PC. I did "add this launcher to panel" on both as an easy way of checking their properties:

The higher entry issues the command 'hwbrowser'
The lower entry issues the command 'hal-device-manager'

Both have the comment "view information on the hardware on this computer". I feel the hal-device-manager entry has the wrong name, comment, and icon. I think /etc/xdg/menus/system-settings.menu is relevant.

View 2 Replies View Related

CentOS 5 :: Cron Job Is Not Running

Jan 7, 2010

I have created a conjob via ssh by going to crontab -e and adding my scripts like 05 10 * * * /scripts/old-files-delete.sh.The file has 755 permissions and if I run the script manualy it works fine. I have checked the cron log and it does not show up as running at all.

View 5 Replies View Related

CentOS 5 :: Looking For Cron Alternative?

Oct 27, 2010

I want to create some scheduled jobs in a CentOS server. These jobs are simple and repeatable, but the scheduling is complicated. I want a series of jobs to start every day but Monday, and not on the last day of the month. These jobs depend on software execution outside the server ( a Windows application) so if the Windows app fails, I need to temporarily suspend the cron jobs so I can straighten out the Windows server.

I've looked over some cron alternatives and nothing seems suitable. Am I stuck with cron and the limitations of crontab, or are there some programmatic things I can do in cron that I don't know about?

View 1 Replies View Related

CentOS 5 :: Yum Upgade Error - Clean Up Multiple Entries Made For Xdelta Package

Feb 12, 2010

I was running CentOs 5.3 and did a "yum upgrade" and got the following problem: Transaction Check Error: file /usr/share/man/man1/xdelta.1.gz from install of xdelta-1.1.4-1.el5.rf.x86_64 conflicts with file from package xdelta-1.1.3-20.i386

[code]....

It seems that somehow multiple entries were made for the xdelta package - how do I clean this up?

View 5 Replies View Related

CentOS 5 Networking :: Virtual Host Entries Are Not Working When Accessed From External Static IP?

Jan 16, 2011

I had made following entries in my httpd.conf file at centos5.5.

###########################
Listen 80
Listen 8080
Listen 8085[code]....

When i am trying to access the any directory other on port *80, its not being accessible from the static ip which is routed through a DMZ server. http://122.165.35.9:8085 something like this returns the error "could not connect to web browser"

View 3 Replies View Related

CentOS 5 :: Get Rid Of Awstats Cron Output

May 27, 2009

I' running awstats via

/etc/logrotate.d/httpd
prerotate
/usr/bin/awstats_updateall.pl -awstatsprog=/var/www/awstats/awstats.pl now
endscript

View 1 Replies View Related

CentOS 5 :: No Items From /etc/cron.daily Run On 5.3

Oct 26, 2009

I'm having a very strange issue with cron on centos 5.3 64-bit. I have 3 cron scripts in /etc/cron.daily which run backups. They are as follows:

script1:

#!/bin/bash
/usr/local/bin/backup-script1

script2:

#!/bin/bash
/usr/local/bin/backup-script2

script3:

#!/bin/bash
/usr/local/bin/backup-script3

The contents of the 3 /usr/local/bin scripts are ...

/usr/local/bin/backup-script1:
#!/bin/bash
synbak -s srv1 -m rsync
rsync -av --delete /data/backup/srv1/* root@::share/srv1/

To explain this, the 1st active line does a synbak backup and the 2nd active line rsyncs the backup data to a remote server.

/usr/local/bin/backup-script2:
#!/bin/bash
synbak -s srv2 -m rsync
rsync -av --delete /data/backup/srv2/* root@::share/srv2/

[code]....

View 7 Replies View Related

CentOS 5 Server :: How To See Cron Log File

Mar 15, 2011

I am using cent os 5. I My server daily shutdown at 7:00 PM.I want to see the log file of my cron activity what the process is successfully started or not

View 1 Replies View Related

General :: How To Add Entries / How To Delete Entries

Oct 13, 2010

I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.

View 4 Replies View Related

CentOS 5 Server :: Cron - Run Script From X Hour To Y?

Sep 10, 2009

i cannot find it in the man. Is it possible to run cron job like this:

Run script from 18 00 till 5 00?

I want to run some script but only during the night time, when users are not working.

View 3 Replies View Related

CentOS 5 :: Script Don't Obey Cron Orders?

Oct 23, 2009

I have an script called conection located in /etc/ppp ( /etc/ppp/conection)The content of the scrips is:

pppd call isp Running it by hand, it dials out to my ISP and fetch all my email from different accounts and turn-off the link. It works great. I decided to automate the process using the cron.

The problem is when cron execute it at the specified time, nothing happens. It doesn't even dials out. I checked /var/log/cron and cron says It was executed. But it doesn't. I try again running the script by hand and works fine.

View 1 Replies View Related

CentOS 5 :: WGet Commands - Cron Job Not Running

May 25, 2010

I have the following cron configuration in the 'crontab' file:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=<--- REMOVED -->
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
20 16 * * 1-5 root wget [URL]
07 30 * * 1-5 root wget [URL]
11 30 * * 1-5 root wget [URL]

My focus is on the three WGET commands. The problem is the first one works fine, runs at 4:20 p.m., but the other two never run! If I visit [URL] it works fine but cron never runs it.

View 2 Replies View Related

CentOS 5 :: Emptied Cron.daily Accidently ?

Nov 25, 2010

I made a big rookie mistake in a script in cron.daily, which emptied the directory when I tested it... now I'm left with an empty cron.daily directory, and from what I know there definitely were more scripts there than only my own. Does anybody know what scripts CentOS 5.4 (Final) needs in the cron.daily?

View 3 Replies View Related

CentOS 5 :: Cron Job Runs At Incorrect Time - Clocks Seem Ok

Mar 9, 2010

Within a VMWare ESX virtual machine, I am running CentOS 5.2. (Actually, it is kind of a virtual appliance to run CollabNet's Teamforge - which I have installed for a trial). I've been dabling with Linux for a year or so, but I know I have much to learn.

I'm attempting to run a cron job that runs a backup script at 11pm. It works great, but unfortunately it runs at 11:30 am.

I created the cron job using 'crontab -e', while logged in as root. My cron job line is : 0 23 * * 1,2,3,4,5 /etc/tjt_backup/collabnet_backup.sh

If I type 'date', I get the correct date/time in my timezone: Tue Mar 9 16:27:12 CST 2010

If I type 'clock', I also get the correct date/time: Tue 09 Mar 2010 04:26:57 PM CST -0.463330 seconds

(Although, it appears there is a little drift)

View 10 Replies View Related

Ubuntu Servers :: Cron Sending Email From Address / Change The Default Domain Name For Cron?

Apr 29, 2011

Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com

this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.

View 1 Replies View Related

CentOS 5 Server :: Cron Send Mail But Stuck In Queue

Aug 5, 2010

I recently install CentOS 5.5 on my small server. Unfortunately, I have problems with my mail configuration. I don't know anything about sendmail and dns configuration so I am just looking for something easy to set up. I use cron to perform automatic task. I set up the variable $MAILTO in cron to my regular mail. Cron send the mail but it is stuck in the queue.

View 11 Replies View Related

CentOS 5 :: Bash Script Under Cron Produces Broken Pipe

Apr 20, 2011

I have script which does file locking via flock and then writing it's pid into that file. It perfectly works being run by hand in terminal, running under cron on Debian, but somehow fails being run under cron on Centos 5.6. Script part and straced outputs are below.

bash code:

#setting lock
mylog "setting lockfile $LOCKFILE"
exec 200<> $LOCKFILE

[code]....

View 4 Replies View Related

CentOS 5 :: Cron Errors - Segmentation Fault, Floating Point Exception

Dec 7, 2009

I'm running CentOS 5.4.In the last three days I've started to get various cron errors:

/bin/sh: line 1: 7066 Segmentation fault /usr/local/scripts/cron.email.sshd.access/cron.email.sshd.access.pl
/bin/sh: line 1: 4822 Floating point exceptionsudo -u mobile getmail --quiet
Can't load '/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so'

[code]...

Then yesterday I rebooted, and all the other errors seemed to have disappeared for now, but, I am now getting:

/bin/sh: line 1: 23600 Segmentation fault sudo -u mobile getmail --quiet

I have setup cron to call getmail once every 3 minutes, and I get this error about 4-6 times an hour.

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved