How do I write the crontab on hourly basis i.e, 9:00, 10:00.....22:00.. 23:00 hours
If your requirement is to schedule your script to run each hour (24 times a day), then below setup is correct:
But if you wan to run it only between 9:00 AM to 11:00 PM:
OR
Hi,
New to the forum, Great site, I can learn a lot from here!! :cool:
I would like to know how to automate a command that checks the Sybase database's are "alive" on an hourly basis, and mails outlook if they are not (1 Reply)
I need to Change threshold of rotation of kannel logs.
At the moment, Kannel (the SMS gateway system) logs activities in log files which are rotated daily.
Due to high traffic, the logs grow fast every day before they are rotated; meaning that the write speeds while logging slow down due to large... (2 Replies)
I need to capture the following data on an hourly basis through cronjob scheduling:-
1. load averages
2. Total no. of processes.
3. CPU state
4. Memory
5. Top 3 process details.
All the above information is available through the command 'top'. But here we need to automate the same and... (4 Replies)
I have a system where i take hourly back-ups of the system.The script for maintaining full backup for the last 5 days is
find /backup/server -type f -mtime +4 -exec rm -f {} \;
works fine for keeping the files of some 5 days old.
In the case of hourly backups.How do we write to keep... (2 Replies)
dear all,
pls help on this script..
i have many files which will be created every mins in particular directory.
i want to grep a particular string from only for unique hour files.
from the below code i want to grep a string from only 9th hour files .
Ex files:
-rw-r--r-- 1 root ... (5 Replies)
In my cron job on one system I have log files removed older than 3 days, like so: find /u01/arch/PRD8 -mtime +3 -a -name "*.log" -exec rm {} \;
On another system I would like to check and remove anything older than 2 hours.
Any help would be greatly appreciated :wall: (7 Replies)
Hi,
I have to upload a file test_201105281100.txt to a ftp location.
The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.
After a file is uploaded successfully, I need to rename the file as test_201105281100.success & if it is not uploaded... (11 Replies)
Hey all,
I have a set of 5-second data as shown below. I need to find an hourly average of this data.
date co2
25/06/2011 08:04:00 8.30
25/06/2011 08:04:05 8.31
25/06/2011 08:04:10 8.32
25/06/2011 08:04:15 8.33
25/06/2011 08:04:20 ... (5 Replies)
Hi,
I am trying to calculate avg response time on hourly basis from the log file which has millions of records.
As of now I am trying with creating temp file which will have lines with unique id and start time and end time and after that another script will run on this temp file to... (7 Replies)
Discussion started by: random_thoughts
7 Replies
LEARN ABOUT DEBIAN
fake-hwclock
FAKE-HWCLOCK(8) System Manager's Manual FAKE-HWCLOCK(8)NAME
fake-hwclock - Control fake hardware clock
SYNOPSIS
fake-hwclock [ command ] [ force ]
BACKGROUND
Many embedded Linux systems do not have a functional hardware clock. Either they simply don't have a hardware clock at all or they have a
hardware clock but it is not usable (e.g. because Linux doesn't know how to use it or because no battery is present).
This can lead to time moving backwards to some default value (often 1970) when the system is rebooted. Since lots of software assumes that
time only moves forward this is a bad thing. NTP can (and should where practical) be used to sync with an external timeserver but it is not
available early in the boot process and may be unavailable for other reasons.
DESCRIPTION
fake-hwclock sets and queries a fake "hardware clock" which stores the time in a file. This program may be run by the system administrator
directly but is typically run by init (to load the time on startup and save it on shutdown) and cron (to save the time hourly).
If no command is given then fake-hwclock acts as if the save command was used.
COMMANDS
save Save the time to the file.
load Load the time from the file. If force is specified fake-hwclock will move the clock either backwards or forwards. Otherwise it will
only move it forwards.
FILES
/etc/fake-hwclock.data
The file used to store the time
/etc/init.d/fake-hwclock
The init script used to run fake-hwclock on startup and shutdown
/etc/default/fake-hwclock
Settings file for the init script.
/etc/cron.hourly/fake-hwclock
Cron job used to save the time hourly
ENVIRONMENT VARIABLES
FILE set the file used by fake-hwclock
RETURN VALUES
1 is returned for invalid commands. 0 is returned in all other cases.
BUGS
This approach can only provide a crude approximation of what a real hardware clock provides. Use of NTP or another method to keep the time
in sync is strongly advised.
Debian 5 April 2012 FAKE-HWCLOCK(8)