Server :: Running Cron Every 7 Minutes But To Cary Over 7 Minute Count To Next Hour?
Dec 14, 2010
Previously I had posted a question on how to make it run every 7 minutes between 7 and and 11pm.However now I found out what I really need is every 7 minuted between 7:30 and 11pm BUT it has to be every 7 minutes, it cannot reset itself on the top of every hour, so the */7 wont work.How can it that it will be every 7 minutes, so it will go at 7:30, 37,44,51, 58, 8:05, etc..
View 4 Replies
ADVERTISEMENT
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
Jan 8, 2010
I'm running my website on a linux server. I'm using a mac. Apparently, mac mail has a bug where it creates too many imap processes.
Since I'm on a shared server with a 25 process limit, with 3 email accts x 4+ processes each = a lot of problems!
I'm trying to write a cron job to delete imap processes every minute.
I've tried two things
1) following this blog's advice [URL]
Code:
killall imap
i realised it was imapd not imap, but i tried another method anyway
2) create a kill-imap.sh file in my server folder.
Code:
#!/bin/bash
/usr/bin/killall imapd
then executing the file from the cron command /kill-imap.sh
both these cases, it didn't seem to work!
I would get a daemon emai reply with
imapd: no process killed
just to give more info, the existing imap processes look like this
/usr/lib/courier-imap/bin/imapd /home/sitename/mail/sitename.com/emailusername
honestly, I'm not too experienced in this, and i've searched the net without luck. can anyone advise what i'm supposed to do to kill these imap processes every 5 min via cron job?
View 2 Replies
View Related
Dec 13, 2010
How would I set a cron job to run every 7 minutes between 7pm and 11pm?
View 4 Replies
View Related
Sep 3, 2010
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows:
Code:
27-Aug-2010 10:04:30,601|919122874903|phtunes_app|1282243292627|NotifySmsReception|DMGenerateLogInterceptor - ExternalTransactionID:SDP-DM-26713018, TransactionStatus:Requested
27-Aug-2010
[code]....
View 6 Replies
View Related
Nov 15, 2010
I wish to run a cron job every half hour, where exactly do I put the job? The reason I am asking is that I am used to entering jobs into crontab, I am not used to using fedora and its cron layout.
View 2 Replies
View Related
May 28, 2010
I found (Red Hat Fedora Core 6 Server) a CRON entry for "backupmng" that has repeats at 1,16,31 and 46 minutes every hour of every day, 24/7.It is located at:/usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1.
View 1 Replies
View Related
Jun 7, 2010
How I can make sudo Ubuntu 10.04 session an hour and not few minutes?
Now I have to write my password for sudo commands every few minutes.
View 4 Replies
View Related
Mar 23, 2010
I'm experiencing a problem with cron.hourly running mcelog.cron on Fedora 11:Quote:mcelog: warning: 18446744073709551600 bytes ignored in each recordmcelog: consider an updateI've read a dead end email thread here from February 2010 describing what I am seeing on Fedora here:Does anyone have any insight into this problem? This is relevant portion of strace(1)ing mcelog which shows /dev/mcelog is open()d and configured correctly:Quote:
open("/dev/mcelog", O_RDONLY) = 3
ioctl(3, MTRRIOC_SET_ENTRY, 0x7fff13129bac) = 0
ioctl(3, MTRRIOC_DEL_ENTRY, 0x7fff13129ba8) = 0
[code]...
View 4 Replies
View Related
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
Oct 1, 2010
I am attempting to schedule a task to run every hour. I have altered the crontabs for my account but the the task still won't run on the hour.
View 1 Replies
View Related
Feb 10, 2010
I want to use "sleep" in a bash script to count down to a certain hour each day. What I need is to find the time NOW, find the difference between NOW and 2am, and sleep for that many seconds. So, using bash, how can I find the time NOW and find the difference to 2am?
View 9 Replies
View Related
Jan 31, 2010
I want to make a cron job for my webserver, only it seems not to work...
I have now the followig to test (every 16th minute of the hour, write test to a file), but it doesn't show up. When I write out the cron, it is done to the file: /tmp/crontab.QXsBIO/crontab . How to make cron work? It must be very easy, but I have real troubles getting it fired up.
My Linux version is debian lenny and the cron file looks like (crontab -e):
(with trailing empty line at the end)
View 3 Replies
View Related
Jun 15, 2011
Cron on one of my boxes isn't running and I failed to determine why.
Here are what I have found so far:
Password:
View 6 Replies
View Related
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
Mar 18, 2011
I've run into a strange problem on one of the servers I maintain. It's running CentOS 5, fully up to date. The server has Monit installed via RPMforge, and runs Postfix as its MTA. Every day at about 4:20am, when cron is running, Monit loses its connection to Postfix. As far as I can tell, nothing is actually going wrong with Postfix and it's always restarted just fine. I run a couple of Debian servers with very similar setups, and the problem does not occur on them.
Perhaps related, other daemons on the CentOS box often lose their pid files at the time when cron runs, which results in Monit thinking they're not running. One service in particular (zarafa-dagent) is so bad for this that I've had to completely disable monitoring of it in Monit. Again, this problem doesn't occur on the Debian boxes I maintain.The problem isn't hugely urgent as everything still runs fine, but it does mean that pretty much every day I get false positive mail alerts from Monit, which is (a) annoying and (b) makes me more likely to miss a real alert.
View 5 Replies
View Related
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
Jul 11, 2011
I'm trying to get cron to run a bash script every 15 minutes to change my desktop background
running crontab -e I added
Code:
*/15 * * * * sh /home/ME/Documents/scripts/background.sh
(at first i didnt have the sh before the path of the script but read somewhere i needed that) But it doesnt seem to be running my script works fine if ran straight from the terminal so Dont think thats the problem.
View 9 Replies
View Related
Oct 30, 2010
I have a crontab on my vps running every minute that checks to see whether or not a certain port is open on localhost. If the port isn't open, it should run the php script to restart the program. However, I require the use of screen to be able to interact with the program whenever I reconnect to the vps through shell.The problem is, screen is being a pain by saying "Must be connected to a terminal."This is the php script:
Code:
#!/usr/bin/php -q
<?php
[code]....
View 5 Replies
View Related
Jun 1, 2010
My root Vixie cron crontab is set to perform a system snapshot via fsarchiver: 0 0 * * * fsarchiver savefs -o -A /backups/p30_root.fsa /dev/sda2 /dev/sda3 The command itself works fine, generating about a 7G snapshot of my Suse server. I then wish to rsync this to a NAS I have located in another building: 0 3 * * * rsync -av -e ssh --delete /backups/ root{at address}:/DataVolume/os_backups/
(yes, I'm rsyncing as root. I absolutely loathe it, but I got thrown into an quasi-SA position with a ridiculous to-do list and no time to do it. I'm having to make things just work and then go back and try to improve them/learn how. I couldn't make it work in a non-root way quick enough, so for now I'm having to cron rsync jobs as root because of all the differing file permissions on this samba/MySql server. I set the NAS to only accepts ssh from the server IP, and we're behind a campus firewall... It's serious trial by fire.) The crontab also has rsync commands for the samba areas, our specialized chemistry software and affiliated MySQL databases............
View 2 Replies
View Related
Nov 3, 2010
I list all the instances of a running process my doing:ps -ef | grep myprogramThis lists all them.how can I simply output a count of how many are running?
View 2 Replies
View Related
Mar 24, 2010
I recently decided to try KDE4 and would like the change the clock on the panel to display 12 hour format and not the default 24hour format but i can not find where to change this option currently the clock looks like the attached picture. Gnome has this option and I would like to see it in KDE if it exists in the default clock. I am willing to replace the default KDE clock with a seperate widget if one exists for this.
View 1 Replies
View Related
Dec 7, 2010
I have centos 5.2.....i get this error while booting...the total hard disk is about 1160 GB....This server is used for file share....it has lots of datas........is it recommended to run fsck.....i am afraid that i will lose datas....is there any way to sort this issue....logs and fstab details are as follows
error on boot
FSTAB
View 7 Replies
View Related
Aug 5, 2010
I need to change the time displayed in the task bar from a 24 hour clock to a 12 hour format. I could not find the relevant settings in OpenSuse 11.2 and same is the case for 11.3 as well.
how to make the change? I have tried System Settings ---> Computer Administration ---> Date & Time; but I was not able to make the desired change.
Similarly, I have a digital clock widget that shows GMT + 5.5 hours and I need to change that to 12 hour format as well.
View 3 Replies
View Related
Jun 17, 2011
I just switched over to Lubuntu, and so far, it's been great.It's rendering quite well with my laptop, even though the fan is constantly running.I've had some small annoyances that I haven't been able to figure out. How do I get the power button and/or other related actions to the 'start' menu? Is there a way to drag and drop applets like in Ubuntu? How do I setup default brightness like in Ubuntu? How do I change the time to normal US time (12 hour instead of 24 hour)How do I change the time to a 12-hour instead of 24-hour?Is there a software center?
View 2 Replies
View Related
Feb 24, 2010
I have the following perl/DBI script:
Quote:
#!/usr/bin/perl
use DBI;
my ($db, $user, $pw) = ('dbname', '****', '***********');
my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr
[code].....
The error message is
[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr
View 2 Replies
View Related
May 16, 2010
Still having problems with the locked black screen freezing a couple of minutes in. I've done everything anyone has recommended on the other threads but nothing and it is driving me crazy. Please, does anyone have any ideas? I tried to install xfce4 but of course, screen froze and went black before I could fully download the software! I've tried the nomodeset but can't save it before doing a reboot (then went via terminal as quick as I could on start up to edit grub, but then... yes, it fell over and froze before I could hit save). So I'm giving this a lot of time I really don't have... such a shame I upgraded, 9.10 was working so well... alternatively,
View 1 Replies
View Related
Jan 25, 2010
I am planning on running a script once every five minutes, and the syntax that comes to mind in doing this is the following:
Code:
5 10 15 20 25 30 35 40 45 50 55 * * * * /apps/<script>.pl
Is there a better syntax to use to accomplish this task, or is the above example the way to go?
View 2 Replies
View Related
Oct 22, 2010
I am still an openSUSE noob and have been struggeling to get cron jobs running for the past couple of hours...without having success Hopefully a more experienced user can give me a hand As root I used crontab to setup some cron jobs:
Code:
crontab -u api-cebian -e
The resulting cronjob looks like this:
[code]....
View 7 Replies
View Related
Jan 6, 2010
why my second cron job isn't running? The first one runs fine but the second one does not run at all. If I manually run the script using ./check.sh then it does what it is supposed to but will not run from cron. It should run every weekday at 9:45am, it looks good to me but clearly I am doing something wrong.
Code:
# m h dom mon dow command
#This will backup my hosted websites.
0 2 * * * /home/bob/scripts/websitebakscript.sh
#This will run check and upload it's contents to the net.
45 9 * * 1,2,3,4,5 /home/bob/scripts/check.sh
View 9 Replies
View Related