Bug 57252

Summary: journalctl -n 0 outputs a log line, immediately, should output none
Product: systemd Reporter: Liu Wei <mylwjef>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: mylwjef
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Liu Wei 2012-11-18 16:57:26 UTC
When you write a shell script need monitor log outputs, this feature is essential.

Before we write this with syslog and tail.

"tail -fn0 /path/to/logfile | while read line ; do"

When using "journalctl -fn1 /path/to/sth", it will always give the last line of the log, I have to write some extra processing it.

But I do not know how to handle it with a simple way, I just want handle the new log line.

Sorry for my poor english.
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-02-08 00:43:07 UTC
Fixed in http://cgit.freedesktop.org/systemd/systemd/commit/?id=67e04a48.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.