Quantcast
Channel: Write to syslog from the command line - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4

Answer by Drew Noakes for Write to syslog from the command line

$
0
0

Use the logger command.

logger Some message to write

There 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 remote syslog server-p Specify a priority-t Tag the line with a specified tag

See man 1 logger for more information on the tool.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>