03-18-2009
when i tried to verify the output with below input
start time 23:24:00 end time time :03:24:00 out put is +20:00:00 istead of 04:00
Please update to remedify abpve scenario, it appers that we should subtract from 24
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can someone help me with a Unix or perl script to convert the unix timestamps to human readable format?
Any help will be highly appreciated... (3 Replies)
Discussion started by: hamsasal
3 Replies
2. Solaris
I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM
I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
Discussion started by: raman1605
8 Replies
3. UNIX for Advanced & Expert Users
Here is a problem that involves looping:
- I have multiple files with same name but different timestamps:
e.g test20080226144525.txt, test20080227144525.txt (can be more
than two files).
- I want to take the collection of these files (e.g test*) and append all its contents... (2 Replies)
Discussion started by: ChicagoBlues
2 Replies
4. Shell Programming and Scripting
Hello!
I have the following problem.
I read a file using perl, each line of this file has the fllowing format.
14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$
Th first field is the timestamp and the second field is the offset in seconds.
How can... (1 Reply)
Discussion started by: chriss_58
1 Replies
5. Shell Programming and Scripting
Hi! Long time reader first time registered user and poster.
I've picked up some times and tricks and I'm at a dead end... I've parsed a log file for duplicates and printed only the two fields I need (duplicate entry and time stamp).
My question is, with this output, how would I script... (2 Replies)
Discussion started by: rexpokinghorn
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
i have current timestamp, lets say "12:02:45" in an variable (var1) and another timestamp "08:30:00" fetched from table in another variable2 (var2).
How do i compare 2 timestamps in unix shell scripting.
if var 1 > var 2 then echo message.
Thanks in advance. (3 Replies)
Discussion started by: prasannarajesh
3 Replies
7. Shell Programming and Scripting
Hello fellow Unix geeks,
I have been given a very urgent assignment in my office on writing a particular Shell script but I'm very much new to it.I would appreciate any help from you on solving this problem--which might seem very trivial to you.
The Unix flavour is a Sun Solaris one..(not... (6 Replies)
Discussion started by: Digjoy83
6 Replies
8. Shell Programming and Scripting
Hi,
Need to grep for a error in a log file but between two timestamps / patterns
example: in the below log file if the given timestamps are 14:00 to 15:00
and m greping for error only error3 should come in the output.
pls note that apart from timestamps printed, the log file has no... (2 Replies)
Discussion started by: amicableperson
2 Replies
9. Shell Programming and Scripting
Hi all!!,
I'm using Ksh and working on Linux.
I want to compare two timestamps, timestamp1 and timestamp2.
Until, timestamp1 is lesser than timestamp2, i want to do something, lets say print something.
The code i have written is:
a=`date +%H:%M:%S`
b=`date +%H:%M:%S -d" 1... (1 Reply)
Discussion started by: Jayaraman
1 Replies
10. Shell Programming and Scripting
hello
i'm using SOX to generate a spectrogram from a wave file with the command :
#sox file.wav -n spectrogram
is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with... (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT SUNOS
dnssec-signkey
dnssec-signkey(1M) System Administration Commands dnssec-signkey(1M)
NAME
dnssec-signkey - DNSSEC key set signing tool
SYNOPSIS
dnssec-signkey [-ahp] [-c class] [-e end-time] [-r randomdev] [-s start-time] [-v level] keyset key...
DESCRIPTION
The dnssec-signkey utility signs a keyset. Typically the keyset will be for a child zone and will have been generated by dnssec-makekey-
set(1M). The child zone's keyset is signed with the zone keys for its parent zone. The output file is of the form signedkey-nnnn., where
nnnn is the zone name.
OPTIONS
The following options are supported:
-a Verify all generated signatures.
-c class Specify the DNS class of the key sets.
-e end-time Specify the date and time when the generated SIG records expire. As with start-time, an absolute time is indicated in
YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A
time relative to the current time is indicated with now+N. If no end-time is specified, 30 days from the start time is used
as a default.
-h Prints a short summary of the options and arguments to dnssec-signkey().
-p Use pseudo-random data when signing the zone. This is faster, but less secure, than using real random data. This option may
be useful when signing large zones or when the entropy source is limited.
-r randomdev Specify the source of randomness. If the operating system does not provide a /dev/random or equivalent device, the default
source of randomness is keyboard input. randomdev specifies the name of a character device or file containing random data
to be used instead of the default. The special value keyboard indicates that keyboard input should be used.
-s start-time Specify the date and time when the generated SIG records become valid. This can be either an absolute or relative time. An
absolute start time is indicated by a number in YYYYMMDDHHMMSS notation; 20000530144500 denotes 14:45:00 UTC on May 30th,
2000. A relative start time is indicated by +N, which is N seconds from the current time. If no start-time is specified,
the current time is used.
-v level Set the debugging level.
OPERANDS
The following operands are supported:
key The keys used to sign the child's keyset.
keyset The file containing the child's keyset.
EXAMPLES
Example 1: Sign the keyset file for example.com.
The DNS administrator for a DNSSEC-aware .com zone would use the following command to sign the keyset file for example.com created by
dnssec-makekeyset with a key generated by dnssec-keygen:
dnssec-signkey keyset-example.com. Kcom.+003+51944
In this example, dnssec-signkey creates the file signedkey-example.com, which contains the example.com keys and the signatures by the .com
keys.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWbind9 |
|Interface Stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
dnssec-keygen(1M), dnssec-makekeyset(1M), dnssec-signzone(1M), attributes(5)
NOTES
Source for BIND9 is available in the SUNWbind9S package.
SunOS 5.10 15 Dec 2004 dnssec-signkey(1M)