The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Latest Slax release needs more time in the oven iBot UNIX and Linux RSS News 0 03-04-2008 05:40 AM
Current Process Running. coolbhai UNIX for Dummies Questions & Answers 4 01-17-2008 12:46 PM
Compare dates in a field and print the latest date row cvkishore Shell Programming and Scripting 1 08-04-2007 07:58 AM
to find current running process ranjkuma692 High Level Programming 2 03-07-2005 06:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-06-2008
mail2sant mail2sant is offline
Registered User
  
 

Join Date: Apr 2008
Location: bangalore
Posts: 67
to compare latest logfile with the current running time of the script

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..

my problem is if i start the script at 9:00
and the script fails .. it not going to create any entry in logfile
and during the verification the latest logfile in the log directary is
before 9.00 and verifcation(verification is carried out inside the a.sh script only after updating databse ) will say that .. it was sucessfully updated the
database(since it takes the latest log file ). but in this case it has taken a wrong logfile to verification..

i want to know that
when i run the script at 9.00 .. script should pick the logfile which as updated after 9.00 to verification and if the latest available log file is before 9.00 .. it should say it has failed..

PLEASE HELP me in this .. i want the solution urgent as my deadline is exceeding...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0