man-pages/man8/logsave.8.html
2021-03-31 01:06:50 +01:00

119 lines
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of LOGSAVE</TITLE>
</HEAD><BODY>
<H1>LOGSAVE</H1>
Section: Maintenance Commands (8)<BR>Updated: January 2020<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
logsave - save the output of a command in a logfile
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>logsave</B>
[
<B>-asv</B>
]
<I>logfile cmd_prog [ ... ]</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>logsave</B>
program will execute
<I>cmd_prog</I>
with the specified argument(s), and save a copy of its output to
<I>logfile</I>.
If the containing directory for
<I>logfile</I>
does not exist,
<B>logsave</B>
will accumulate the output in memory until it can be written out.
A copy of the output will also be written to standard output.
<P>
If
<I>cmd_prog</I>
is a single hyphen ('-'), then instead of executing a program,
<B>logsave</B>
will take its input from standard input and save it in
<I>logfile</I>
<P>
<B>logsave</B>
is useful for saving the output of initial boot scripts
until the /var partition is mounted, so the output can be written to
/var/log.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-a</B>
<DD>
This option will cause the output to be appended to
<I>logfile</I>,
instead of replacing its current contents.
<DT id="2"><B>-s</B>
<DD>
This option will cause
<B>logsave</B>
to skip writing to the log file text which is bracketed with a control-A
(ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of
Text). This allows progress bar information to be visible to the user
on the console, while not being written to the log file.
<DT id="3"><B>-v</B>
<DD>
This option will make
<B>logsave</B>
to be more verbose in its output to the user.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
Theodore Ts'o (<A HREF="mailto:tytso@mit.edu">tytso@mit.edu</A>)
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+fsck">fsck</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="8"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="9"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:13 GMT, March 31, 2021
</BODY>
</HTML>