LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2012, 05:42 AM   #16
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325

Well, if you only want to be notified once an hour, it'd be simplest to only run the script once an hour.
If you want to be notified once/hr, but run script more often than once/hr, you could just use the date cmd to generate the current date time in the Format YYYYMMDDHHMI and save it to a file somewhere.
Next time round, generate current datetime in same format and subtract the 2 nums. If the difference > 60 (minutes), re-send the email.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux script Limiting Zip archive size giantanakim Programming 15 11-09-2011 12:59 PM
download manager script with bandwidth limiting steve51184 Linux - Server 1 08-03-2008 05:59 PM
Limiting the output of the script Breezend Programming 2 12-06-2006 02:15 PM
Limiting RAM usage in a perl script DanTaylor Programming 2 05-05-2006 03:37 PM
limiting page load frequency with a perl cgi script Metroid Programming 0 12-30-2004 11:33 PM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration