Sponsored Content
Top Forums Shell Programming and Scripting How to calculate this time difference Post 302221075 by aigles on Sunday 3rd of August 2008 09:22:51 AM
Old 08-03-2008
Search this forum, many posts are related to date/time difference.

Jean-Pierre.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to calculate the time difference...

Hi All, I've written a script which reads all the systems backup information and saves it in a log file. ssh -l ora${sid} ${primaryhost} "tail -2 /oracle/$ORACLE_SID/sapbackup/back$ORACLE_SID.log" |head -1 | awk '{print echo "PREVIOUS:-- Start Date&Time: " $3,$4,echo "|| End Date&Time:... (1 Reply)
Discussion started by: suri.tyson
1 Replies

2. Shell Programming and Scripting

How to calculate the time difference.

Hi All, I've written a script which reads all the systems backup information and saves it in a log file. ssh -l ora${sid} ${primaryhost} "tail -1 /oracle/$ORACLE_SID/sapbackup/back$ORACLE_SID.log" | awk '{print $3,$4,$5,$6}' >> ${RESULTFILE} The output comes as below: 2008-09-30 06.00.01... (2 Replies)
Discussion started by: suri.tyson
2 Replies

3. Shell Programming and Scripting

Formatting output so I can calculate time difference between two stamps

I know there have been a million questions regarding calculating time stamps, and with enough googling, I think I'm almost there (I'm going to use the changing the times into seconds and subtracting solution). My problem is that I'm not sure how to format my log file to get the info I need. Below... (0 Replies)
Discussion started by: DeCoTwc
0 Replies

4. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

5. Shell Programming and Scripting

Calculate the Time stamp difference

hi, I have a log file which gives time stamps hh:mm:ss.sssss format in which hh- hours , mm -minutes ss.sssss - seconds.microseconds I need to calculate the time diff between sent time stamp and received time stamp .... could any one please help me.. i am tryin to write a script but... (2 Replies)
Discussion started by: firestar
2 Replies

6. Shell Programming and Scripting

Calculate age of a file | calculate time difference

Hello, I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes... I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes. To do... (10 Replies)
Discussion started by: worm
10 Replies

7. Shell Programming and Scripting

Calculate time stamp difference

Hi All, I am new to shell scripting.I have to write a shell script for the problem statement: "A file is updated continously. If it is not updated for a day then an error message needs to pop up." So the script needs to read the last modified time of that file and current system time .If... (4 Replies)
Discussion started by: bharath.phatak
4 Replies

8. Shell Programming and Scripting

Calculate time difference between pst and pdt dates in perl

Hi, how to calculate the time difference between PST date and PDT date in perl scripting. date1: Mon Dec 31 16:00:01 PST 2015 date2: Tue Mar 19 06:09:30 PDT 2013 and also difference between PST-PST and PDT-PDT need difference in months or days (months prefereble). (3 Replies)
Discussion started by: praveen265
3 Replies

9. Shell Programming and Scripting

Calculate time difference

I have time in a file in HH:MM:SS format as it contents(its not the file creation time). i need this to be converted to epoch time or time since 1970. The time is written into that file by a script, which i cannot modify. Im using AIX machine $ cat abc.txt 10:29:34 (2 Replies)
Discussion started by: gpk_newbie
2 Replies

10. Shell Programming and Scripting

Calculate time difference between two lines

i grepped the time stamp in a file as given below now i need to calculate time difference file data: 18:29:10 22:15:50 (5 Replies)
Discussion started by: vivekn
5 Replies
Info::CiscoStpExtensions(3pm)				User Contributed Perl Documentation			     Info::CiscoStpExtensions(3pm)

NAME
SNMP::Info::CiscoStpExtensions - SNMP Interface to "CISCO-STP-EXTENSIONS-MIB" AUTHOR
Carlos Vicente SYNOPSIS
DESCRIPTION
Create or use a subclass of SNMP::Info that inherits this class. Do not use directly. For debugging you can call new() directly as you would in SNMP::Info my $stpx = new SNMP::Info::CiscoStpExtensions(...); Inherited Classes SNMP::Info SNMP::Info::Bridge MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz GLOBAL METHODS
These are methods that return scalar values from SNMP $stpx->stp_ver() Returns the particular STP version running on this device. Meant to override SNMP::Info::Brigde::stp_ver() Values: "pvstPlus", "mistp", "mistpPvstPlus", "mst", "rapidPvstPlus" ("stpxSpanningTreeType") TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash. $stpx->mst_config_digest() Returns the Multiple Spanning Tree (MST) configuration digest ("stpxSMSTConfigDigest") $stpx->mst_region_name() Returns the Multiple Spanning Tree (MST) region name ("stpxMSTRegionName") $stpx->mst_region_rev() Returns the Multiple Spanning Tree (MST) region name ("stpxSMSTRegionRevision") $stpx->mst_vlan2instance() Returns the mapping of vlan to MST instance in the form of a hash reference with key = VLAN id, value = STP instance $stpx->i_rootguard_enabled() Returns 1 or 0 depending on whether "RootGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value = [1|0] ("stpxRootGuardConfigEnabled") $stpx->i_loopguard_enabled() Returns 1 or 0 depending on whether "LoopGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value = [1|0] ("stpxLoopGuardConfigEnabled") $stpx->i_bpduguard_enabled() Returns 1 or 0 depending on whether "BpduGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value = [1|0] ("stpxFastStartPortBpduGuardMode") $stpx->i_bpdufilter_enabled() Returns 1 or 0 depending on whether "BpduFilter" is enabled on a given port. Format is a hash reference with key = "ifIndex", value = [1|0] ("stpxFastStartBpduFilterEnable") MUNGES
oct2str() Unpacks H* into a string perl v5.12.4 2011-09-28 Info::CiscoStpExtensions(3pm)
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy