Bug 57252 - journalctl -n 0 outputs a log line, immediately, should output none
Summary: journalctl -n 0 outputs a log line, immediately, should output none
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-18 16:57 UTC by Liu Wei
Modified: 2013-02-08 00:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.