summaryrefslogtreecommitdiffstats
path: root/usr.bin/logger/logger.1
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2006-08-02 13:21:44 +0000
committerbms <bms@FreeBSD.org>2006-08-02 13:21:44 +0000
commit14416210a8cd69e9bcfe1bbb86fd64fd0bb67e32 (patch)
tree0791e0ece41cc45403d6ff8a4e262c718440b1e7 /usr.bin/logger/logger.1
parent87adc023e9e85f57330a25cc1a61f1f8a4ca4c29 (diff)
downloadFreeBSD-src-14416210a8cd69e9bcfe1bbb86fd64fd0bb67e32.zip
FreeBSD-src-14416210a8cd69e9bcfe1bbb86fd64fd0bb67e32.tar.gz
Add a new command-line option, -P, which allows the user to specify
an arbitrary port to which syslog messages are to be sent. PR: bin/54026 Submitted by: Oliver Fromme MFC after: 10 days
Diffstat (limited to 'usr.bin/logger/logger.1')
-rw-r--r--usr.bin/logger/logger.111
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/logger/logger.1 b/usr.bin/logger/logger.1
index cc952ea..70b0b8e 100644
--- a/usr.bin/logger/logger.1
+++ b/usr.bin/logger/logger.1
@@ -43,6 +43,7 @@
.Op Fl 46Ais
.Op Fl f Ar file
.Op Fl h Ar host
+.Op Fl P Ar port
.Op Fl p Ar pri
.Op Fl t Ar tag
.Op Ar message ...
@@ -82,6 +83,16 @@ Log the specified file.
Send the message to the remote system
.Ar host
instead of logging it locally.
+.It Fl P Ar port
+Send the message to the specified
+.Ar port
+number on a remote system,
+which can be specified as a service name
+or as a decimal number.
+The default is ``syslog''.
+If an unknown service name is used,
+.Nm
+prints a warning and falls back to port 514.
.It Fl p Ar pri
Enter the message with the specified priority.
The priority may be specified numerically or as a ``facility.level''
OpenPOWER on IntegriCloud