The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Get the latest directory created f354676 Shell Programming and Scripting 2 05-12-2008 11:59 AM
how can i pick the latest log file as per below mail2sant Shell Programming and Scripting 1 04-05-2008 05:29 AM
Getting latest file from ftp arunavlp UNIX for Dummies Questions & Answers 3 02-08-2008 06:19 AM
get latest file via ftp command alx Post Here to Contact Site Administrators and Moderators 2 01-26-2006 07:44 AM
get latest file inquirer Shell Programming and Scripting 3 07-06-2003 09:44 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2005
Registered User
 

Join Date: Mar 2005
Posts: 12
Stumble this Post!
want to cat the latest log file created

everytime a new logfile get created at certain interval of time and i want a
simple shell script program which cat the lastest log file when manually excuted
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-08-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Stumble this Post!
Some thing like this ....
add more to ls to satisfy your criteria for your log files

Code:
cat `ls -rt |tail -1`
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0