Skip to content
Snippets Groups Projects
Commit 56395fe3 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

Debian does not have messages or syslog anymore

parent feaf121c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ $Data::Dumper::Indent= 1;
open (MSG, '/var/log/messages') # RHEL, CentOS
or open (MSG, '/var/log/syslog') # Ubuntu
or die "cant read messages"; # TODO: or try something else?
or open (MSG, '|-', 'journalctl -ex') # Debian
or die "can't read messages"; # TODO: or try something else?
seek (MSG, 0, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment