]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/logsave.8.in
e2fsck: fix to return ENOMEM in alloc_size_dir()
[thirdparty/e2fsprogs.git] / misc / logsave.8.in
CommitLineData
f9ddad59
TT
1.\" -*- nroff -*-
2.\" Copyright 2003 by Theodore Ts'o. All Rights Reserved.
3.\" This file may be copied under the terms of the GNU Public License.
d04ad325 4.\"
f9ddad59
TT
5.TH LOGSAVE 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6.SH NAME
7logsave \- save the output of a command in a logfile
8.SH SYNOPSIS
9.B logsave
10[
bc34d6be 11.B \-asv
f9ddad59 12]
bc34d6be 13.I logfile cmd_prog [ ... ]
f9ddad59
TT
14.SH DESCRIPTION
15The
16.B logsave
17program will execute
d04ad325 18.I cmd_prog
bc34d6be 19with the specified argument(s), and save a copy of its output to
f9ddad59
TT
20.IR logfile .
21If the containing directory for
22.I logfile
d04ad325 23does not exist,
f9ddad59
TT
24.B logsave
25will accumulate the output in memory until it can be written out.
26A copy of the output will also be written to standard output.
27.PP
d04ad325 28If
bc34d6be 29.I cmd_prog
f9ddad59
TT
30is a single hyphen ('-'), then instead of executing a program,
31.B logsave
bc34d6be
TT
32will take its input from standard input and save it in
33.I logfile
f9ddad59
TT
34.PP
35.B logsave
d04ad325
TT
36is useful for saving the output of initial boot scripts
37until the /var partition is mounted, so the output can be written to
f9ddad59
TT
38/var/log.
39.SH OPTIONS
40.TP
41.B \-a
d04ad325 42This option will cause the output to be appended to
f9ddad59 43.IR logfile ,
bc34d6be
TT
44instead of replacing its current contents.
45.TP
46.B \-s
d04ad325 47This option will cause
bc34d6be 48.B logsave
d04ad325 49to skip writing to the log file text which is bracketed with a control-A
bc34d6be
TT
50(ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of
51Text). This allows progress bar information to be visible to the user
52on the console, while not being written to the log file.
f9ddad59
TT
53.TP
54.B \-v
bc34d6be 55This option will make
f9ddad59 56.B logsave
bc34d6be 57to be more verbose in its output to the user.
f9ddad59
TT
58.SH AUTHOR
59Theodore Ts'o (tytso@mit.edu)
60.SH SEE ALSO
61.BR fsck (8)