01-19-2009
man find and look for the -mtime test
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how can i compare the latest log file with the current time..
consider i am running a script "a.sh" at 09:00
( function of the script a.sh is to update the database )
this script is going to create logfile if the script is sucess
in case of failure it is not going to create logfile..
... (0 Replies)
Discussion started by: mail2sant
0 Replies
2. Shell Programming and Scripting
hi,
i am new to this site.
i want to write a script to compare the file size of the files in the current dir with the files in the previous directory.
the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Discussion started by: tweety
5 Replies
3. AIX
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please... (1 Reply)
Discussion started by: achu
1 Replies
4. AIX
I want to read a log file from a particular location.In the log file each line starts with timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file... (1 Reply)
Discussion started by: achu
1 Replies
5. Shell Programming and Scripting
Hello,
I've created the script below to compare the content of two files with a delay of an hour. After an hour, the lines that exist in both files, will be printed and executed.
The script now uses a counter to countdown 50 minutes. But what I would prefer is to check the file timestamp of... (3 Replies)
Discussion started by: taipan
3 Replies
6. Shell Programming and Scripting
I'm trying to compare 2 dates between current time and the timestamp on a file.
The date format is mmdd
Both return Apr 1 but when using if statement
line 11: Apr 1: command not found error is returned
#!/bin/sh
log="DateLog"
Current_Date=`date +%b%e`
Filepmdate=`ls -l /file.txt |... (1 Reply)
Discussion started by: cillmor
1 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I have a simple script follow:
-------------
#!/bin/bash
echo -n " Enter the date of today: "
read dateoftoday
-------------
Now I want to compare the variant $dateoftoday with date of the system (now) in order to prevent user inputs the past date to $dateoftoday. I want to make... (3 Replies)
Discussion started by: axn_boy
3 Replies
8. Shell Programming and Scripting
I want to find a file using find or any utility having the current date time stamp.....
I have an alternate way to do that.... but that is too way out of logic... so looking out something with find itself (5 Replies)
Discussion started by: nikhil jain
5 Replies
9. UNIX for Advanced & Expert Users
hi all
find /folder1 -mtime 1 >folder1
with the above command , I can get the output of all the files which are modified(within folders and sub folders of folder1) in the last 24 hours.
but the listed files output , does not contain the time stamp with it.
I request you to give... (4 Replies)
Discussion started by: sidharthmellam
4 Replies
10. HP-UX
I have a file like this
-rwxr-xr-x 1 rewq other 168 Jan 13 07:05 check_files.sh
I want to compare (check_files.sh time) with the current time to see if its is older than 2 hours or not
if it is not older than 2 hrs then do something.can someone help me on this?.I dont... (7 Replies)
Discussion started by: haadiya
7 Replies
LEARN ABOUT MOJAVE
app::prove::state::result::test
App::Prove::State::Result::Test(3pm) Perl Programmers Reference Guide App::Prove::State::Result::Test(3pm)
NAME
App::Prove::State::Result::Test - Individual test results.
VERSION
Version 3.26
DESCRIPTION
The "prove" command supports a "--state" option that instructs it to store persistent state across runs. This module encapsulates the
results for a single test.
SYNOPSIS
# Re-run failed tests
$ prove --state=fail,save -rbv
METHODS
Class Methods
"new"
Instance Methods
"name"
The name of the test. Usually a filename.
"elapsed"
The total elapsed times the test took to run, in seconds from the epoch..
"generation"
The number for the "generation" of the test run. The first generation is 1 (one) and subsequent generations are 2, 3, etc.
"last_pass_time"
The last time the test program passed, in seconds from the epoch.
Returns "undef" if the program has never passed.
"last_fail_time"
The last time the test suite failed, in seconds from the epoch.
Returns "undef" if the program has never failed.
"mtime"
Returns the mtime of the test, in seconds from the epoch.
"raw"
Returns a hashref of raw test data, suitable for serialization by YAML.
"result"
Currently, whether or not the test suite passed with no 'problems' (such as TODO passed).
"run_time"
The total time it took for the test to run, in seconds. If "Time::HiRes" is available, it will have finer granularity.
"num_todo"
The number of tests with TODO directives.
"sequence"
The order in which this test was run for the given test suite result.
"total_passes"
The number of times the test has passed.
"total_failures"
The number of times the test has failed.
"parser"
The underlying parser object. This is useful if you need the full information for the test program.
perl v5.18.2 2014-01-06 App::Prove::State::Result::Test(3pm)