I have a file with time in it. I need to find the duration between the timestamp by subtracting second row from third row and so on. and wherever it is more than 30 minutes it should display start and end time which have been subtracted
file :
so as 7th row minus 6th row time 2:46:58 - 00;46:51 is more than 30 minute so these time stamps should get displayed.
Moderator's Comments:
Please use CODE tags when displaying sample input, sample output, and code segments, as required by forum rules.
Last edited by Don Cragun; 02-13-2017 at 03:42 AM..
Reason: Add CODE and ICODE tags.
Hi ,
I am trying to find out the List of files modified or added aftter installation of any component on SUN solaris box .
But i am not able to do it using ls or find command .
Can somebody help me out ?
Thanks
Sanjay Gupta (2 Replies)
I have a file which has 3 coloumns emp_name, Joining_date, Designation.
abc 12/1/2001 SSE
def 2/25/2007 SE
ghi 3/18/2009 SA
abc 8/1/2008 SSE
def 2/13/2007 SE
ghi 3/24/2005 SA
I need to find out the emp who has been in the company for longest period(Till date).
Can I have any... (3 Replies)
hi, i'm trying to figure out how to tell the amount of time a ufsdump of a directory takes. i use the below command:
echo "Starting Backup of u4" >> /backup/backup.log 2>&1
/usr/sbin/ufsdump 0uf /dev/rmt/0n /u4 >> /backup/backup.log 2>&1
echo "Finished Backup of u4" >> /backup/backup.log... (0 Replies)
Hello forum, i would like to ask if there's a way to view the remaining time of copying files (talking about copying gigabytes) while the cp commnad is running.
I'm using OpenBSD 4.9 -stable.
Thanx in advance. :) (2 Replies)
Hello, I want to write a script that takes a username as input and outputs the user's logins sorted by duration. Also I want to exclude the "still logged in" entries.
I use the "last" command but Im having problems sorting the entries based on the duration.
Can you help me?
Thanks a lot =) (4 Replies)
I have used the arecord command like this
arecord -d 1 test.wav
It is keep on waiting. I need to manually interrupt it by ctrl-c. Why it is not interrupting after one second?
The arecord version which I am using is :
arecord: version 1.0.23 by Jaroslav Kysela (3 Replies)
hello,
I have implemented this command :
tshark -eth0 -T fiels -e frame.time et sip.Request-Line -z sip,stat > test2.txt
the result of this command : test.txt:
Aug 27, 2013 23:06:47.334270000 INVITE
Aug 27, 2013 23:06:47.335045000 SIP/2.0 401 Unauthorized
Aug 27, 2013... (1 Reply)
Hi , How can I check that for a single process, for example pagent for how much duration this process was up or down and also I need multiple entries if this process was down or up multiple times. Please help. (3 Replies)
I have 2 variables
startTime='122717 23:20'
endTime='122817 0:40'
how can i get the elapsed duration as like "1 hour 20 minutes" ? (8 Replies)
Discussion started by: vikram3.r
8 Replies
LEARN ABOUT DEBIAN
html::mason::cache::basecache
HTML::Mason::Cache::BaseCache(3pm) User Contributed Perl Documentation HTML::Mason::Cache::BaseCache(3pm)NAME
HTML::Mason::Cache::BaseCache - Base cache object
DESCRIPTION
This is the base module for all cache implementations used in Mason. It provides a few additional methods on top of "Cache::BaseCache" in
Dewitt Clinton's "Cache::Cache" package.
An object of this class is returned from $m->cache.
METHODS
clear ()
Remove all values in the cache.
get (key, [%params])
Returns the value associated with key or undef if it is non-existent or expired. This is extended with the following optional
name/value parameters:
busy_lock => duration
If the value has expired, set its expiration time to the current time plus duration (instead of removing it from the cache) before
returning undef. This is used to prevent multiple processes from recomputing the same expensive value simultaneously. The duration
may be of any form acceptable to set.
expire_if => sub
If the value exists and has not expired, call sub with the cache object as a single parameter. If sub returns a true value, expire
the value.
get_object (key)
Returns the underlying "Cache::Object" object associated with key. The most useful methods on this object are
$co->get_created_at(); # when was object stored in cache
$co->get_accessed_at(); # when was object last accessed
$co->get_expires_at(); # when does object expire
expire (key)
Expires the value associated with key, if it exists. Differs from remove only in that the cache object is left around, e.g. for
retrieval by get_object.
remove (key)
Removes the cache object associated with key, if it exists.
set (key, data, [duration])
Associates data with key in the cache. duration indicates the time until the value should be erased. If duration is unspecified, the
value will never expire by time.
$expires_in may be a simple number of seconds, or a string of the form "[number] [unit]", e.g., "10 minutes". The valid units are s,
second, seconds, sec, m, minute, minutes, min, h, hour, hours, d, day, days, w, week, weeks, M, month, months, y, year, and years.
perl v5.14.2 2012-02-04 HTML::Mason::Cache::BaseCache(3pm)