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


ADVERTISEMENT

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 :: Desktop Alternative To Ubuntu And Fedora?

Mar 31, 2009

I'm getting really fed up of all the bugs on Ubuntu and Fedora. Currently I manage 20-25 Optiplex 755 computers on my company. I tried Ubuntu and while it was great because of the repositories, the machines do not shutdown properly. Suspend is also a hit and miss. Well, I'm totally fed up of this. On the server side I use mostly CentOS and I am extremelly happy (except for the lack of VMI) with it.

Do you think CentOS will be a good alternative for my desktops? Is it comparable to Redhat Enterprise Desktop?

View 8 Replies View Related

Networking :: Alternative Solution For Internet Connection To CentOS

Nov 12, 2010

i am a fresher to linux. presently i am using CentOS for getting some experience in that. but i have a problem with internet connection using in CentOS. i am using prolink USB ADSL2+ modem (H5200U). so, i request from all readers to give alternative answer.

View 2 Replies View Related

CentOS 5 Networking :: WVDIAL Will Not Dial Alternative Number?

Apr 6, 2010

Using Centos 5.4 I've successfully set up pppd and wvdial to automatically dial out but I need wvdial to call an alternative number if the number is busy or dialout fails for some other reason and I cannot get this to work. I've gone back to basics and tried manually soliciting wvdial with a minimal wvdial.conf:

[Dialer ppp-client]
Password = secret
Modem = /dev/ttyS1
Phone = 11111111111
Phone1 = 22222222222

[Code]...

View 3 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 :: 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 :: 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 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

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

CentOS 5 Hardware :: Service Network Stop Automatically - Restart In Cron Tab

Jan 23, 2011

I am using
# uname -rmi
2.6.18-194.26.1.el5PAE i686 i386

# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5 (Tikanga)
CentOS release 5.5 (Final)

I have noticed that after few days of ideal system it will stop its network interface. To resolve this I have to login to the machine it self and then issue
# service network start
Is this a feature. If this is not a feature then what is this. As an workaround I am thinking of adding service network restart in cron tab for everyday in night when I am not using it.

View 6 Replies View Related

Fedora :: No Output From Cron Jobs In /etc/cron.daily

Jan 29, 2011

I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).

The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.

The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.

I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)

View 3 Replies View Related

Ubuntu Installation :: Cron's /etc/cron.daily/apt Not Upgrading?

Feb 25, 2010

It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:

Code:

ps -A | grep apt

showed it for a long time,

Code:

sudo tcpdump tcp

showed communication with canonical sites,

but:

Code:

top

did not show any apt using CPU

[code].....

View 2 Replies View Related

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

Software :: Vixie-Cron Not Running /etc/cron.d/

Feb 9, 2011

Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.

Code:

View 2 Replies View Related

CentOS 5 :: Install Anti Virus / Security Package On Server Uses Cron Jobs To Do Scan Every 12 Hours

Feb 27, 2011

I have a Cent OS dedicated server, not sure what version though as I'm new to Linux. How do I find out what version I have? Is there an anti virus or security package that I can install on my server which can use Cron Jobs to do a scan every 12 hours.

View 7 Replies View Related

CentOS 5 Server :: Cron Job Doesn't Run, But Doesn't Error. "shutdown -r Now"

Aug 28, 2009

Is there something that blocks cron from running a shutdown command? I'm doing a daily bounce to break an attack (I have thread about that in security forum), but I always end up doing it manually. The cron log shows it being fired off at the right time...but the server never bounces. I thought maybe I just missed it, but there is nothing in messages that shows the server restarting (unlike when i do it manually, you see the start-up logging).

View 2 Replies View Related

Debian :: An Alternative For Mathematica?

Apr 30, 2011

I'm an undergraduate Physics student, and I would like to install a software for helping me with relatively simple tasks, such as calculating integrals, plotting graphs and performing some general numerical calculations. Can someone indicate me a good software for these purposes, preferably an official Debian package?

View 11 Replies View Related

OpenSUSE :: Any Recommended Ark Alternative For KDE?

Feb 14, 2011

is there any recommended Ark alternative for KDE?I really don't like that program.

View 6 Replies View Related

Ubuntu :: Alternative To Turbo Tax?

Feb 4, 2010

I have used TurboTax online for several years to do my return....this year they are refusing Firefox running on a Linux OS!Anyone know of an alternative that is Linux friendly?

View 9 Replies View Related

Ubuntu :: Alternative To MS Publisher?

May 8, 2010

Does any know of an alternative???

View 4 Replies View Related







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