↧
Answer by DarkNeuron for Write to syslog from the command line
As a dev, I rarely have time to closely study man pages, so TLDR:logger -p local0.notice -t ${0##*/}[$$] Hello worldThe gibberish in the middle will translate to the calling program. So if you check...
View ArticleAnswer by Sylvain Pineau for Write to syslog from the command line
Alternatively, you can write to syslog from python:python -c 'import syslog; syslog.syslog("Hello World")'
View ArticleAnswer by Drew Noakes for Write to syslog from the command line
Use the logger command.logger Some message to writeThere are several options available, including:-i Log the process ID in each line-f Log the contents of a specified file-n Write to the specified...
View ArticleWrite to syslog from the command line
How can I write an entry into /var/log/syslog from the command line?
View Article
More Pages to Explore .....