Piping tail output though grep twice

I believe the problem here is that the first grep is buffering the output which means the second grep won’t see it until the buffer is flushed. Try adding the –line-buffered option on your first grep: tail -f access_log | grep –line-buffered “127.0.0.1” | grep -v “.css” For more info, see “BashFAQ/009 — What is … Read more

How can I get the source code for the linux utility tail?

The tail utility is part of the coreutils on linux. Source tarball: ftp://ftp.gnu.org/gnu/coreutils/coreutils-7.4.tar.gz Source file: https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/tail.c (original http link) I’ve always found FreeBSD to have far clearer source code than the gnu utilities. So here’s tail.c in the FreeBSD project: http://svnweb.freebsd.org/csrg/usr.bin/tail/tail.c?view=markup

Streaming log(txt) viewer [closed]

Tail for Win32 is a simple open-source program I’ve been using for a couple of years already. Notepad++ can actually do it out of the box. From within Notepad++: Settings > Preferences > MISC. From there, you can check “Update silently” and “Scroll to the last line after update” in the group “File Status Auto-Detection”

How can I tail a remote file?

Have you tried ssh -t remotemachine <some command> -t option from the ssh man page: -t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)