logger — Add Entries to the System Log

Synopsis

/usr/bin/logger [-i][-f file][-p priority][-t tag][message]... 

Description

The logger command provides a method for adding one-line entries to the system log file from the command line. You can specify one or more message arguments on the command line, in which case each is logged immediately. If you specify no command-line arguments, either the file indicated with -f or the standard input is added to the log. Otherwise, you can specify a file with a set of lines to be logged. If you specify no options, logger reads and logs messages on a line-by-line basis from the standard input.

Options

-f file Use the contents of file as the message to log.
-i Log the process ID of the logger process ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.