1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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
This commit is contained in:
Sheldon Hearn 1999-06-23 15:44:40 +00:00
parent 2467b7977b
commit 8a56be1af7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48141

View File

@ -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