summaryrefslogtreecommitdiffstats
path: root/usr.bin/vacation
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-06-23 15:44:40 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-06-23 15:44:40 +0000
commit5924813a9fe9b7766494b9b8baab4cb1e8e0c667 (patch)
tree2a0e47ba513bba68b7d3333652e42b2fe2dc4f2b /usr.bin/vacation
parentd1bfd3d82b8b42ff695b7d35a79e28c0050e0a5b (diff)
downloadFreeBSD-src-5924813a9fe9b7766494b9b8baab4cb1e8e0c667.zip
FreeBSD-src-5924813a9fe9b7766494b9b8baab4cb1e8e0c667.tar.gz
Add a messy example of how to get debug-mode error messages written to
a file in the user's home directory. Requested by: hoek
Diffstat (limited to 'usr.bin/vacation')
-rw-r--r--usr.bin/vacation/vacation.112
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/vacation/vacation.1 b/usr.bin/vacation/vacation.1
index f6a6760..e90eef6 100644
--- a/usr.bin/vacation/vacation.1
+++ b/usr.bin/vacation/vacation.1
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)vacation.1 8.1 (Berkeley) 6/16/93
-.\" $Id: vacation.1,v 1.6 1997/02/22 19:57:38 peter Exp $
+.\" $Id: vacation.1,v 1.7 1999/06/17 14:44:41 sheldonh Exp $
.\"
.Dd June 16, 1993
.Dt VACATION 1
@@ -169,6 +169,16 @@ are logged in the system log file, using
unless debugging mode is enabled with the
.Fl d
option, in which case they are written to the standard error output.
+.Pp
+Building on the example provided above, you might choose to have errors
+redirected to a file while you are testing vacation's operation with
+the following in your
+.Pa .forward
+file:
+.Pp
+.Bd -literal -offset indent
+\eeric, "|/bin/sh -c '/usr/bin/vacation -d -a allman eric' 2>/home/eric/.vacation.log"
+.Ed
.Sh DIAGNOSTICS
The
.Nm
OpenPOWER on IntegriCloud