LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tail return weird outoput (https://www.linuxquestions.org/questions/linux-newbie-8/tail-return-weird-outoput-4175412892/)

fachhoch@gmail.com 06-22-2012 04:37 PM

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



Code:

[ec2-user@ip-10-35-66-50 ~]$ tail  - f /opt/tomcat/logs/catalina.out
==> standard input <==
^C

why tail is not working?

anomie 06-22-2012 04:44 PM

Remove the space between - and f. (You're telling tail(1) to read from stdin.)

Kustom42 06-22-2012 04:44 PM

you have a space between your "-" and your "f"


All times are GMT -5. The time now is 11:21 AM.