summaryrefslogtreecommitdiffstats
path: root/term-utils/script.1
Commit message (Collapse)AuthorAgeFilesLines
* script: record exit codeKarel Zak2018-05-141-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* script: add the -o/--output-limit option. Fix race test.Fred Mora2018-05-141-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | When script is used on a host with a relatively small free disk space, it is sometimes desirable to limit the size of the captured output. This can now be enforced with the --output-limit option. The --output-limit option lets the user specify a maximum size. The program uses the size parsing from strutils and thus supports the usual multiplicative suffixes (kiB, KB, MiB, MB, etc.). After the specified number of bytes have been written to the output file, the script program will terminate the child process. Due to buffering, the size of the output file might exceed the specified limit. This limit also does not include the start and done messages. The race test was throwing an error dur to a variable being "" in some cases. Quoting the variable in the equal test took care of that test. [kzak@redhat.com: - use done() to stop script - count also timing file - remove unnamed member initialization in ctl struct - add to bash-completion] Signed-off-by: Fred Mora <fmora@datto.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: fix ambiguity about the optional argument of the -t optionAntonio Ospite2017-07-181-1/+1
| | | | | | | | [kzak@redhat.com: - merge two patches from Antonio to the one, - update the patch] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Antonio Ospite <ao2@ao2.it>
* script: always write stat and done message to typescript fileKarel Zak2017-04-181-2/+1Star
| | | | | | And remove usec from timestamp. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* script: tweak spacing and wording, and restore filling in the man pageBenno Schulenberg2016-03-171-7/+9
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* script: add note to BUGS man page sectionKarel Zak2015-06-251-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* script.1: Improve documentation of non-interactive behaviorStanislav Brabec2015-02-161-1/+7
| | | | | | | | | | | - use exit in .profile to avoid non-logged session after typing "exit" - document that script can read more from stdin than the command inside: echo -e 'script -c "read a b ; echo a=\$a b=\$b >defs.sh"\n1 2\necho Done' | sh Script started, file is typescript 1 2 echo Done Script done, file is typescript
* script: no logging for non-interactive shellsStanislav Brabec2015-02-121-0/+20
| | | | | | | | | | | | | | | | Karel Zak wrote: > Would be better to learn people to fix their shell initialization > files to not call script(1) for non-interactive sessions? It makes sense. From 8fff32e65399ae07f70e12568d4d5278725673a7 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Wed, 11 Feb 2015 15:02:10 +0100 Subject: [PATCH] script.1: Document behavior in non-interactive shells And discourage users from such use.
* docs: bring a few more man pages closer to standard formattingBenno Schulenberg2014-07-161-16/+16
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* script: --quiet option is not quiet.James Hunt2014-06-231-1/+2
| | | | | | | | | | | Specifying 'script --quiet ...' still produces the 'Script started' message in the typescript file. The --quiet option implies that the script program should not log any of its output to the typescript file. Originally reported at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693966 Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: align script.1 with howto-man-page.txtSami Kerola2011-10-031-98/+91Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: also uniformize headers and footers of troff-formatted man pagesBenno Schulenberg2011-08-291-2/+2
| | | | | | | | | Add two spaces as the required third argument of the date line to make the specified date get used instead of today's date. Incorporate the section number into the page title, then use an empty section number, so that specifying an explicit section/volume name will work. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-2/+2
| | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* script: normalize formatting of the man pageBenno Schulenberg2011-08-151-19/+18Star
| | | | | | | Also improve the description of the --timing option, and discard a then superfluous paragraph. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* script: option --force addedSami Kerola2011-06-291-0/+3
| | | | | | | | | | The --force will allow default output destination, e.g. typescript file, to be hard or symbolic link. [kzak@redhat.com: - remove "error:" prefix from errx()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: optional timing output file argument addedSami Kerola2011-04-121-2/+6
| | | | | | And update to manual page accordingly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: move script and scriptreplay to term-utils/Karel Zak2011-03-021-0/+157
Signed-off-by: Karel Zak <kzak@redhat.com>