Welcome to the most active Linux Forum on the web.
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, 09: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, 09:38 PM   #2
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,763

Rep: Reputation: 247Reputation: 247Reputation: 247
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 07:32 PM
How to redirect standard stdout to multi stdout ( Bash )? john.daker Programming 4 11-03-2008 11:20 PM
How to display BMP image at plz susovan0010 Linux - Newbie 5 09-17-2007 11:12 AM
redirecting stdout to /dev/null and stderr to stdout? Thinking Programming 1 05-18-2006 02:36 AM

All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration