Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2009, 10:17 PM   #1
LQ Newbie
Registered: May 2007
Posts: 1

Rep: Reputation: 0
display only new lines from log to stdout

Hi there.

There is a log file which keeps on getting appended continuously.
Is there any shortcut way to see which are the new lines that have been appended to it.

Is it possible that i attach stdout to this file such that whenever a new line is added to this log file it will be sent to stdout also.??
Old 12-17-2009, 10:38 PM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
tail -f /var/log/syslog

will give you a realtime scrolling display of the system log. You can substitute any log file, or even any text file in place of syslog.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to log startup messages without making stdout >> file ? harryhaller Slackware 8 06-25-2011 08:32 PM
How to redirect standard stdout to multi stdout ( Bash )? john.daker Programming 4 11-04-2008 12:20 AM
How to display BMP image at plz susovan0010 Linux - Newbie 5 09-17-2007 12:12 PM
redirecting stdout to /dev/null and stderr to stdout? Thinking Programming 1 05-18-2006 03:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration