Hello friends,
I am looking for a script or method that can display all the dates between any 2 given dates.
Input:
Date 1
290109
Date 2
010209
Output:
300109
310109
Please help me. Thanks. :):confused: (2 Replies)
Hi!
I have two parameters like this: YYYY-MM-DD YYYY-MM-DD
My question is, there is a direct command for get the elapsed time between the 2 dates, or I have to find another way?
Thx! (1 Reply)
Hello,
I am working on a program in C and need to read, write and manage Dates (YYY-MM-DD HH:MM). I have made my own version of a structure to store the date data and something else. Do you recommend me to use the time.h library? In such case, is it worthwhile to have an structure containing... (1 Reply)
Don't know if it is important: Debian Linux / MySQL 5.1
I have a table:
media_id int(8)
group_id int(8)
type_id int(8)
expiration date
start date
cust_id int(8)
num_runs int(8)
preferred_time int(8)
edit_date timestamp ON UPDATE CURRENT_TIMESTAMP
id... (0 Replies)
Hi guys,
For my wiki site I need to fix 1400 pages that use the wrong date format, most pages (not all) use eg. 1988]] I need to change that to (1988)]]
The date range goes back to 1400 so I guess I need to do the following
ssh into my server,
dump mysql database
vi .sql dump
search... (20 Replies)
Hi All,
I am trying to print the dates that falls between 2 date variables into a file. Here is the example.
$BUS_DATE =20120616
$SUB_DATE=20120613
Output to file abc.txt should be : 20120613,20120614,120120615,20120616
Can you pls help me accomplish this in LINUX.
Thanks... (5 Replies)
HI,
i have row like this
HHH100037440313438961000201001012012073110220002 N
in this i have 2 dates in pos 25-32 and 33-40 , so based upon the se two dates , i need to generated records between these two values
so in the above record 20100101 and 20120731
need to genearte rows like this... (4 Replies)
Hi Am Using Unix Ksh ...
I have a Table called date
select * from date ;
Date
01/02/2013
06/02/2013
I need the output as
Missing Date
01/02/2013
02/02/2013
03/02/2013
04/02/2013
05/02/2013
06/02/2013 (2 Replies)
HI,
to my shell script i pass two parameters date1 and date2
is there any way to get all dates betwen these two dates?
if i pass 20130714 and 20130717 i need to get below dates
20130715
20130716
is it possible.
thanks (3 Replies)
Hi All,
I have 2 dates in mm/dd format.
sdate=10/01 (October 01)
edate=10/10 (October 10)
I need the dates in between these 2 dates like below.
10/01
10/02
10/03
10/04
10/05
10/06
10/07
10/08 (1 Reply)
Discussion started by: jayadanabalan
1 Replies
LEARN ABOUT DEBIAN
bbcombotest.cfg
BBCOMBOTEST.CFG(5) File Formats Manual BBCOMBOTEST.CFG(5)NAME
bbcombotest.cfg - Configuration of bbcombotest tool
SYNOPSIS
$BBHOME/etc/bbcombotest.cfg
DESCRIPTION bbcombotest(1) uses it's own configuration file, $BBHOME/etc/bbcombotest.cfg Each line in this file defines a combined test.
FILE FORMAT
Each line of the file defines a new combined test. Blank lines and lines starting with a hash mark (#) are treated as comments and ignored.
The configuration file uses the hostnames and testnames that are already used in your Xymon bb-hosts file. These are then combined using
normal logical operators - "||" for "or", "&&" for "and" etc.
A simple test - e.g. "Web1.http" - results in the value "1" if the "http" test for server "Web1" is green, yellow or clear. It yields the
value "0" if it is red, purple or blue.
Apart from the logical operations, you can also do integer arithmetic and comparisons. E.g. the following is valid:
WebCluster.http = (Web1.http + Web2.http + Web3.http) >= 2
This test is green if two or more of the http tests for Web1, Web2 and Web3 are green.
The full range of operators are:
+ Add
- Subtract
* Multiply
/ Divide
% Modulo
| Bit-wise "or"
& Bit-wise "and"
|| Logical "or"
&& Logical "and"
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
== Equal
There is currently no support for a "not" operator. If you need it, use the transcription "(host.test == 0)" instead of "!host.test".
NB: All operators have EQUAL PRECEDENCE. If you need something evaluated in a specific order, use parentheses to group the expressions
together.
If the expression comes out as "0", the combined test goes red. If it comes out as non-zero, the combined test is green.
Note: If the expression involves hostnames with a character that is also an operator - e.g. if you have a host "t1-router-newyork.foo.com"
with a dash in the hostname - then the operator-character must be escaped with a backslash '' in the expression, or it will be interpreted
as an operator. E.g. like this:
nyc.conn = (t1-router-nyc.conn || backup-router-nyc.conn)
EXAMPLE
WebCluster.http = (Web1.http || Web2.http)
AppSrvCluster.procs = (AppSrv1.conn && AppSrv1.procs) || (AppSrv2.conn && AppSrv2.procs)
Customer.cluster = WebCluster.http && AppSrvCluster.procs
The first line defines a new test, with hostname "WebCluster" and the columnname "http". It will be green if the http test on either the
"Web1" or the "Web2" server is green.
The second line defines a "procs" test for the "AppSrvCluster" host. Each of the AppSrv1 and AppSrv2 hosts is checked for "conn" (ping)
and their "procs" test. On each host, both of these must be green, but the combined test is green if that condition is fulfilled on just
one of the hosts.
The third line uses the two first tests to build a "double combined" test, defining a test that shows the overall health of the system.
FILES
$BBHOME/etc/bbcombotest.cfg
SEE ALSO bbcombotest(1)Xymon Version 4.2.3: 4 Feb 2009 BBCOMBOTEST.CFG(5)