09-02-2010
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 8th (08/08/10) of August are saturday and Sunday. So I dont want those timings( i mean saturday and sunday- script should check for weekends and should not count the timings for weekends). Finally i need the output in hr format which is the difference between start and end timings excluding weekends.
can anybody help me in this.
Thank you.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there anyway to get the start time and end time / status of a crontab job which was just completed? Of course, we know the start time of the crontab job since we are scheduling. But I would like to know process start and time recorded somewhere or can be fetched from a command like 'ps'. ... (3 Replies)
Discussion started by: thambi
3 Replies
2. Shell Programming and Scripting
Hi,
Please help me in calculating the time difference between below mentioned timestamps.
a=07/17/2007 02:20:00 AM MST
b=07/17/2007 02:07:46 AM MST
Thanks (2 Replies)
Discussion started by: Prat007
2 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
Hi,
Can anyone help me how can I get the line that between the start time and end time.
file1.txt
15/03/2009 20:45:03 Request: - Data of this line
15/03/2009 20:45:12 Response: - Data of this line
15/03/2009 22:10:40 Request: - Data of this line
15/03/2009 22:10:42 Response: - Data of... (1 Reply)
Discussion started by: tanit
1 Replies
6. Linux
Process start time is not showing the correct time:
I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41
Day/Date is setup correctly on the server.
It... (2 Replies)
Discussion started by: hemangjani
2 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
I740(4) Kernel Interfaces Manual I740(4)
NAME
i740 - Intel i740 video driver
SYNOPSIS
Section "Device"
Identifier "devname"
Driver "i740"
...
EndSection
DESCRIPTION
i740 is an Xorg driver for Intel i740 video cards.
SUPPORTED HARDWARE
The i740 driver supports Intel 740 based cards. A list of cards reported to work is provided in the README file with the driver source.
CONFIGURATION DETAILS
Please refer to xorg.conf(5) for general configuration details. This section only covers configuration details specific to this driver.
The driver auto-detects all device information necessary to initialize the card.
However, if you have problems with auto-detection, you can specify:
VideoRam - in kilobytes
DacSpeed - in MHz
MemBase - physical address of the linear framebuffer
IOBase - physical address of the memory mapped IO registers
The following driver options are supported on all chipsets:
Option "NoAccel" "boolean"
Disable or enable 2D acceleration. Default: acceleration is enabled.
Option "SWCursor" "boolean"
Request a software cursor (hardware is default). Default: off
Option "SDRAM" "boolean"
Force the use of SDRAM timings. Default: off
Option "SGRAM" "boolean"
Force the use of SGRAM timings. Default: off
Option "SlowRam" "boolean"
Force the use of slower ram timings. Default: off
Option "Dac6Bit" "boolean"
Force the use of a 6 Bit Dac (8 Bit is the default). Default: off
Option "UsePIO" "boolean"
Force the use of programmed IO (Memory mapped is the default). Default: off
Note: the i740 X server should automatically detect whether your card has SGRAM or SDRAM. Use the "sgram" and "sdram" options if it is
incorrectly detected.
SEE ALSO
Xorg(1), xorg.conf(5), Xserver(1), X(7)
AUTHORS
Authors include: Kevin E Martin and Daryll Strauss of Precision Insight, Inc.
The XFree86 version of this driver was donated to The XFree86 Project by Precision Insight, Inc., Cedar Park, TX, USA
The Xorg version of this driver originally came from XFree86 4.4rc2.
X Version 11 xf86-video-i740 1.3.2 I740(4)