![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|