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


ADVERTISEMENT

Ubuntu :: Adjust The Clocks Of Two Laptops To Same Time In HH:MM:SS Using Date Function?

Feb 12, 2011

We are doing a project related to clock synchronisation. We have two laptops: Compaq and IBM Thinkpad. If we adjust the clocks of two laptops to same time in HH:MM:SS using datefunction, in about half an hour, both the clock drift by about 10-15 min We are wondering how this is possible???We have compiled kernel 2.6.36.2 on both laptops and set the value of HZ to 1000. Then what is the reason for such a significant drift in short interval of time??Is this related to crystal oscillator or anything else?

View 5 Replies View Related

General :: Cron Job Runs Every 30 Secs?

Jul 24, 2011

The problem is I need the php program to send member email confirmation which contains a confirm link. Run every min may still make the member wait. So I like to make it to run every 20 or 30 secs.

I don't want to put the code to send email on my sign up page as that's no good.

But I don't want to put a sleep 30 sec on my php script and going on loop. If it failed in the middle then it may wait abit to start.

What can be done to achieve my goal and what's the best way?

Making a php script to run as a daemon process? Is that possible and okay?

View 9 Replies View Related

Ubuntu Servers :: System Time Runs Slow Hareware Time Run Right?

Apr 11, 2011

I am running my Ubuntu 32 bit server on top of Windows 7 64 bit with VirualBox. It's a 2 core Atom. It's been working good for about half a year. But the last about 6 weeks the system time only in Ubuntu is going slow. About -8 per 24 hours! I can only guess because I have more things running in my Windows 7 and Ubuntu.

I can set it right by coping the hareware time to system time with this command:

Code:
hwclock --hctosys

I want to run a crontab to have that command run every minute. But it don't seem to run.

[Code]...

View 9 Replies View Related

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

Ubuntu :: Surpress Logging When Cron Job Runs?

Dec 24, 2010

I have a cron job that I'm running once per minute.don't want to have the /var/log/crond.log get updated 60 times per hour. How can I suppress the logging of the job?I've tried adding the following to the cron line but they just get logged right along with it!

Code:
*/1 * * * * /path/to/script > /dev/null
or

[code]....

View 1 Replies View Related

Ubuntu :: Cron - Backup Runs To Have Incremental Number

Apr 3, 2010

I am trying to write as bash script in order to have backup done by cron on the webhosting server. I want all backup runs to have incremental number in front of them. I came up with an idea to store incremental number of a backup in txt file on a server so when next one runs is can check the number in the file. However I am having terrible issues. My script:

[code]....

View 7 Replies View Related

Ubuntu :: Cron Runs Shell Script - But Only First Line Of It?

May 18, 2010

I have a cron job that runs a shell script. But it only runs the first line of that shell script and not the rest of the file. I'm a little stumped as to why. If I run the shell script manually, it runs and executes every single line as it should. I think I must need some additional syntax to make this run correctly?

Here is the crontab ...

Code:
root@kchlinux:~/macs# crontab -l
# m h dom mon dow command

[code]....

View 2 Replies View Related

Ubuntu :: Script Fails In Cron But Runs Fine In Regular Shell?

Jul 11, 2011

I have an Ubuntu server running Couch Potato, Sick Beard and Sabnzbdplus. Everything "works" pretty well in a sense that CP and SB push the NZB's to Sabnzbdplus, but Sab crashes regularly (haven't found the solution or the cause for this problem, so if you have some advice regarding that, it's welcome).To counter this problem (Sab crashing) I have a script written which checks if Sab is runnning and if it isn't start it:

Code:
bart@Pyro:~$ cat CheckSabRunning.sh
#!/bin/sh

[code]....

View 9 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

Fedora :: Fan Runs All The Time On 15?

May 27, 2011

I installed Fedora 15 yesterday. Took a few hours to get used to the Gnome 3 interface, and I love it.I noticed that my fan seems to be running all the time irrespective of system load, even when it's idle.An internet search yielded this supposedly resolved issue where the fan ran constantly on systems with Intel integrated graphicsLike that link states, I am running the latest updatedl kernel-2.6.38.6-27.fc15, but the fan running continuously issue still persists.

View 1 Replies View Related

General :: Incorrect Time - Looks Like It's Exactly 4 Hours Behind ?

Jul 24, 2011

A few hours ago, I ran "pacman -Syu" to update, and soon after it was finished the power went out for a few seconds, turning off my computer without properly shutting down. When I started it, the time was wrong (or maybe the time zone, since the minute is correct). It looks like it's exactly 4 hours behind (right now it's 18:53 here, but the date command says 14:53). Also, I have ntpd running, in case that matters.

View 4 Replies View Related

Ubuntu :: Incorrect System Time Due To DST Extension?

Mar 16, 2010

Due to the recent earthquake, Daylight Savings Time was extended to April 3rd, but my Ubuntu machine set its clock back an hour last weekend, which was when DST was originally set to end. I manually reset the time, but when I resumed from hibernate the clock was wrong again. How do I turn off synchronization until April 3rd? More importantly, who needs to be notified of the change to get the problem fixed?

View 5 Replies View Related

Ubuntu :: 10.4.2 LTS Incorrect Login After First Time Install?

Apr 27, 2011

I just installed Ubuntu Server 10.4.2 LTS (32-bit) on Virtualbox 4.0.6 The install went great everything seemed to work. But after it rebooted for the first time when install completed, it is prompting me for a username and password. Note, the only username and password i was prompted to set up was for non-admin stuff. So i tried this username and password i created during install, but it keeps saying 'login incorrect'. I have looked at other threads, although they are mostly for older Ubuntu Server versions, but i couldnt really find anything.
I tried to reinstall and go through the install slowly but still the same issue. i tried Ubuntu for username and no password, tried leaving username and password blank, tried root and the password i created... i tried everything I could think of...

View 3 Replies View Related

General :: Incorrect Time Zone Displaying In Arch?

Mar 6, 2010

I have a server running ArchLinux; I recently installed openntpd on it. Since I started paying closer attention to the clock, I started noticing other things; specifically when I run the "date" command, it's returned in PST when it should be "EST":

[spice@sandbox ~]$ date
Sat Mar 6 00:17:42 PST 2010

I have set the hwclock to localtime, configured "HARDWARECLOCK" to "localtime" in rc.conf, and chosen two different (but accurate) values for TIMEZONE in rc.conf:

[spice@sandbox ~]$ hwclock
Sat 06 Mar 2010 03:17:38 AM PST -0.922220 seconds
[spice@sandbox ~]$ cat /etc/rc.conf | grep TIMEZONE
TIMEZONE="US/Eastern"
[spice@sandbox ~]$ cat /etc/rc.conf | grep HARDWARE
HARDWARECLOCK="localtime"

However, as you can see, "hwclock" and "date" both say they're showing PST, although hwclock is showing the time in EST. I am not sure whether this was the case before installing openntpd. Is there another place where I should be setting the time zone?

View 2 Replies View Related

Software :: Why System Clock Runs Faster Than Hardware Time

Jan 23, 2011

My server is a VPS which is running with CentOS. I found a wield problem that the system clock always runs faster than the hardware clock. For example, I set system clock and hardware clock both on 20:00. After about half an hour, the system clock will be 20:34/5 which is wrong while the hardware clock remains correct (20:30).

View 2 Replies View Related

CentOS 5 :: Best Web Development Application That Runs On Centos KDE?

Sep 8, 2010

What is the best web development application that runs on Centos KDE?Close to Dreamweaver in capabilities.

View 1 Replies View Related

Ubuntu :: Setting Up Cron For The First Time Not Working?

Aug 17, 2010

I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.

[URL]

View 3 Replies View Related

Ubuntu :: Scheduling Cron Job In Different Time Zone

Jan 22, 2011

I have a script to record a weekly radio show from a Sydney radio station.I am in Brisbane.Sydney and Brisbane are both in the same time zone but Sydney(NSW) bounces around on daylight savings time and Brisbane(QLD) does not. Is there a way to specify a timezone for a specific job in the crontab file? If so what would be the format for Sydney so it follows the daylight savings time changes? Right now I will just change the cron schedule when Sydney goes on and off DST.

View 9 Replies View Related

Slackware :: How To Create Cron Job To Execute At Same Time Each Day

Nov 11, 2010

I was thinking of creating a little audio alarm clock with an mp3 and mpg123 to play a song from a cron job each day. How do you specify the time of day to execute a cron job?

View 4 Replies View Related

General :: Cron - Schedule A Service To Run In A Time Period

Mar 2, 2010

i want a service to be start at 8:00 and be ended in 14:00 automatically i already do this manualy by:

/etc/init.d/myservice.sh start
/etc/init.d/myservice.sh stop

i think it should be related to cron jobs.

View 1 Replies View Related

Server :: Running Multiple Cron Jobs At Same Time

Jul 1, 2010

I want to create 2 cron jobs daily

1st cron: Every day by 13(1pm) I want to stop the httpd service
2nd cron: Every day by 13:30(1.30pm) I want to start the httpd service

I tried but only 1 cron job can able to run at a time.

View 7 Replies View Related

Software :: Cron Clock Is An Hour Off To System Time

Mar 31, 2010

I have cron jobs running and the timing is critical, because I'm running Nessus scans on production servers. If I hit them at the wrong time, I'm toast. But when I check the cron log, I see that it is an hour off. Here is the output for the command "clock":
Wed 31 Mar 2010 03:01:26 PM CDT -0.257677 seconds

And this is the tail of the cron log:
Mar 31 16:00:01 nes-001 CROND[8790]: (root) CMD (/Nessus/Targets/NessusScriptDataCenterScan.test)
Mar 31 16:01:02 nes-001 CROND[8822]: (root) CMD (run-parts /etc/cron.hourly)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8822]: starting 0anacron
Mar 31 16:01:02 nes-001 anacron[8832]: Anacron started on 2010-03-31
Mar 31 16:01:02 nes-001 anacron[8832]: Normal exit (0 jobs run)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8834]: finished 0anacron

Cron thinks it is 4:00 p.m., but it's really 3:00 p.m. How do I tell Cron what time it is? (Stopping and restarting the crond service did not change it.)

View 1 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

General :: Log The Start/completion - Time&date - Of My Cron Job Script?

Jan 11, 2010

How do i log the start/completion (time&date) of my cron job script? i want to be able to see what time it started and what time it finished? and if there where any errors while running my script.

View 3 Replies View Related

General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?

Jul 27, 2011

Is there any way to automatically trigger a cron job each time I log in on my linux account.

View 9 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

OpenSUSE Install :: Bind Dns, Postfix, Cron - Failing At Boot Time

Mar 19, 2010

Somehow Bind dns, Postfix, Cron all fail to start automatically at boot time? All of them need to be started manually after the system is up in order to function.

View 1 Replies View Related

CentOS 5 :: Su - Command And Incorrect Password?

Feb 23, 2011

I have a new install of cent os 5. When I try to use the su - command. I get a invalid password error. I am using the correct password.

View 1 Replies View Related

CentOS 5 :: Mysql Runs Single Process

Jun 11, 2011

i have 2 linux centos server Linux version 2.6.18-238.9.1.el5 icant find the problem... server1: you can see mysql runs only single proc but its not possible bcause this is webserver

[Code]...

server2: as you can see there are many mysql

[Code]...

View 3 Replies View Related







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