August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/logger [-i][-f file][-p priority][-t tag][message]...
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.
| -f file | Use the contents of file as the message to log. |
| -i | Log the process ID of the logger process ... |
Read now
Unlock full access