Share your knowledge at the LQ Wiki.
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 06-22-2012, 04:37 PM   #1
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
tail return weird outoput

I use tail to see my log files.

tail - f /opt/tomcat/logs/catalina.out

It always worked before but today when I run the above command

I get a different oputput

[ec2-user@ip-10-35-66-50 ~]$ tail  - f /opt/tomcat/logs/catalina.out 
==> standard input <==
why tail is not working?
Old 06-22-2012, 04:44 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Remove the space between - and f. (You're telling tail(1) to read from stdin.)
Old 06-22-2012, 04:44 PM   #3
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
you have a space between your "-" and your "f"


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
tail the output of tail -n 1 raj k yadav Linux - Newbie 5 02-06-2010 11:26 PM
dpkg return error :post installation script return an error code (1) grimfold Debian 2 09-10-2009 01:55 PM
How to make newer "tail" behave like older "tail" rylan76 Linux - Software 4 12-07-2007 04:27 AM
Weird tail + grep bug Aeiri Linux - Software 2 12-15-2006 05:30 AM
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

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