Sunday, 3 March 2019

I'm a [logger] and I'm OK!

The "logger" command can send a text string to the syslog. #why-didn't-I-know-that-already

http://manpages.ubuntu.com/manpages/xenial/man1/logger.1.html

localadmin@mypc:~$ logger Mark
localadmin@mypc:~$ sudo tail /var/log/syslog
Oct 31 15:23:40 mypc systemd[16714]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Oct 31 15:23:40 mypc systemd[16714]: Reached target Timers.
Oct 31 15:23:40 mypc systemd[16714]: Listening on GnuPG network certificate management daemon.
Oct 31 15:23:40 mypc systemd[16714]: Listening on D-Bus User Message Bus Socket.
Oct 31 15:23:40 mypc systemd[16714]: Reached target Sockets.
Oct 31 15:23:40 mypc systemd[16714]: Reached target Basic System.
Oct 31 15:23:40 mypc systemd[16714]: Reached target Default.
Oct 31 15:23:40 mypc systemd[16714]: Startup finished in 44ms.
Oct 31 15:23:40 mypc systemd[1]: Started User Manager for UID 1000.
Oct 31 15:23:46 mypc localadmin: Mark 
In other news I updated my page on useful PC tools



Ciao

No comments:

Post a comment

Popular Posts