From 5924813a9fe9b7766494b9b8baab4cb1e8e0c667 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 23 Jun 1999 15:44:40 +0000 Subject: 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 --- usr.bin/vacation/vacation.1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr.bin/vacation') 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 -- cgit v1.1