1LOGSAVE(8) System Manager's Manual LOGSAVE(8)
2
3
4
6 logsave - save the output of a command in a logfile
7
9 logsave [ -asv ] logfile cmd_prog [ ... ]
10
12 The logsave program will execute cmd_prog with the specified argu‐
13 ment(s), and save a copy of its output to logfile. If the containing
14 directory for logfile does not exist, logsave will accumulate the out‐
15 put in memory until it can be written out. A copy of the output will
16 also be written to standard output.
17
18 If cmd_prog is a single hyphen ('-'), then instead of executing a pro‐
19 gram, logsave will take its input from standard input and save it in
20 logfile
21
22 logsave is useful for saving the output of initial boot scripts until
23 the /var partition is mounted, so the output can be written to
24 /var/log.
25
27 -a This option will cause the output to be appended to logfile,
28 instead of replacing its current contents.
29
30 -s This option will cause logsave to skip writing to the log file
31 text which is bracketed with a control-A (ASCII 001 or Start of
32 Header) and control-B (ASCII 002 or Start of Text). This allows
33 progress bar information to be visible to the user on the con‐
34 sole, while not being written to the log file.
35
36 -v This option will make logsave to be more verbose in its output
37 to the user.
38
40 Theodore Ts'o (tytso@mit.edu)
41
43 fsck(8)
44
45
46
47E2fsprogs version 1.45.6 March 2020 LOGSAVE(8)