Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#32629 - [systemd] --lines=,n 0 option support for journalctl
Attached to Project:
Arch Linux
Opened by Liu Wei (lwjef) - Tuesday, 13 November 2012, 16:33 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 17 November 2012, 17:55 GMT
Opened by Liu Wei (lwjef) - Tuesday, 13 November 2012, 16:33 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 17 November 2012, 17:55 GMT
|
DetailsDescription:
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" Likely, maybe we can use "journalctl -fn1 /path/to/sth ...", but it's buggy. Sorry for my poor english. Additional info: * systemd 195-2 Steps to reproduce: # journalctl -n0 Failded to parse lines '0' |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 17 November 2012, 17:55 GMT
Reason for closing: Upstream
Saturday, 17 November 2012, 17:55 GMT
Reason for closing: Upstream
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.