summaryrefslogtreecommitdiff
path: root/usr.bin/script/script.1
AgeCommit message (Collapse)Author
2024-04-26script: handle terminal resize on SIGWINCHKyle Evans
Add a -w flag to forward terminal resize events on to the child, which can be useful in some circumstances to avoid terminal corruption. Reviewed by: des Co-authored-by: Xavier Beaudouin <xavier.beaudouin@klarasystems.com> Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44167
2023-11-26usr.bin: Remove ancient SCCS tags.Warner Losh
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: one-line nroff patternWarner Losh
Remove /^\.\\"\s*\$FreeBSD\$$\n/
2022-10-27script: Correct -F in man page and usage string.Dag-Erling Smørgrav
Sponsored by: Klara, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37138
2022-03-10script: use %n at the end of default tstamp_fmtSimon J. Gerraty
Since we are only outputting time-stamps when they differ ending it with a newline, interferes with the output less.
2022-03-09script add -T fmt to print time-stampsSimon J. Gerraty
script -r is useful for recording time-stamps of when output happened. With -T, rather than playback the script in real-time we simply print the time-stamps to show when the output happened. This is very useful for example, for analyzing boot time activity. If the fmt provided contains no % characters the default %n@ %s [%Y-%m-%d %T] is used, which lends itself to analysis by tools as well as humans. Sponsored by: Juniper Networks, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D34511
2021-01-05Add some examples to script.1Mateusz Piotrowski
While here: - Split synopsis into two parts. The first explains how to record sessions, while the second one explains how to replay (some of) the recorded sessions. - Fix the -width argument of the environment variables list. MFC after: 1 week
2021-01-05Improve readability of the options listMateusz Piotrowski
MFC after: 3 days
2020-09-01Bump date for r365052Warner Losh
Notes: svn path=/head/; revision=365053
2020-09-01Have script accept and ignore -e for Linux compatWarner Losh
In the util-linux version of script, it will always exit with succes. Except when run with -e, in which case it will have the exit value of the child. BSD Script already uses the child's exit value for its exit value. Some config and other helper scripts depend on being able to specify -e. Accept it for compatibility since we'll already to the right thing, but otherwise we ignore it. Notes: svn path=/head/; revision=365052
2017-02-28Renumber copyright clause 4Warner Losh
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
2015-08-26Fix SEE ALSO.Sergey Kandaurov
The history mechanism applies to csh. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=287163
2014-12-26mdoc: sort SEE ALSO.Joel Dahl
Notes: svn path=/head/; revision=276258
2013-12-05Add -F to flush output after each write. With this, I canTom Rhodes
set up a pipe and allow a jr user to watch what I'm doing by running 'script -F pipefile' on it. While here, spell out the month in the .Dd tag like other manual pages. Notes: svn path=/head/; revision=258955
2013-07-30MFC'ing to 9.2.David E. O'Brien
Notes: svn path=/head/; revision=253814
2013-03-16Fix version in the .Fx macro.Sergey Kandaurov
Reported by: <deeptech71@gmail.com> Notes: svn path=/head/; revision=248388
2012-10-26Add "-f" to also output filemon(4) information.David E. O'Brien
Notes: svn path=/head/; revision=242138
2012-10-07Remove contractions.Joel Dahl
Notes: svn path=/head/; revision=241331
2012-07-30Mention when -d, -p and -r first hit FreeBSD.Brian Somers
Bump the document date to when the change was made (rather than when the PR was submitted). Suggested by: pluknet Notes: svn path=/head/; revision=238897
2012-07-30Add d, p and r switches for recording script sessions with timing dataBrian Somers
and playing sessions back with or without time delays. PR: 114465 Submitted by: ighighi at gmail dot com MFC after: 3 weeks Notes: svn path=/head/; revision=238896
2011-09-29Fix a few grammar and mdoc nits in script.1Glen Barber
PR: 161088 Submitted by: Ben Kaduk ( kaduk % mit ! edu ) MFC after: 1 week Need-MFC: 225809 Notes: svn path=/head/; revision=225857
2011-09-27When script(1) reads EOF from input it starts spinning on zero-byteMikolaj Golub
reads eating 100% CPU. Fix this by skipping select on STDIN after reading EOF -- permanently if STDIN is not terminal and for one second if it is. Also after reading EOF from STDIN we have to pass it to the program being scripted. The previous approach was to write zero bytes into the pseudo-terminal. This does not work because zero-byte write does not have any effect on read. Fix this by sending VEOF instead. Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org> Discussed with: kib, Chris Torek <chris.torek@gmail.com> Approved by: kib MFC after: 1 week Notes: svn path=/head/; revision=225809
2010-12-11Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl
is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
2010-09-19Fix the grammar after I added a second environmental variable.David E. O'Brien
Submitted by: wxs Notes: svn path=/head/; revision=212832
2010-09-16+ Add the SCRIPT environmental variable to the sub-shell. Its value isDavid E. O'Brien
the name of the typescript file. + Add the 'command' argument (if supplied on the command line) to the typescript file. This creates a more complete typescript when invoked this way - more equal to invoking script without supplying the 'command' argument. Notes: svn path=/head/; revision=212770
2004-07-03Deal with double whitespace.Ruslan Ermilov
Notes: svn path=/head/; revision=131507
2004-07-02Mechanically kill hard sentence breaks.Ruslan Ermilov
Notes: svn path=/head/; revision=131491
2004-05-19Bumped document date.Ruslan Ermilov
Fixed markup nit. Notes: svn path=/head/; revision=129433
2004-01-22Fix SYNOPSIS of manual page, clustering no-arg options correctly.Sheldon Hearn
Sync usage with manpage. Notes: svn path=/head/; revision=124846
2003-09-07Introduce arguments the standard way. In .Ar command ..., ... is not anPhilippe Charnier
argument, command is. Notes: svn path=/head/; revision=119851
2002-04-20Use `The .Nm utility'Philippe Charnier
Notes: svn path=/head/; revision=95124
2001-07-15Remove whitespace at EOL.Dima Dorfman
Notes: svn path=/head/; revision=79755
2001-07-10mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov
Notes: svn path=/head/; revision=79535
2000-11-20mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov
Notes: svn path=/head/; revision=68963
2000-03-06Make a run-on sentence into two proper sentences, and clarify the meaningBrian Feldman
a bit. Notes: svn path=/head/; revision=57786
2000-03-02Remove more single-space hard sentence breaks.Sheldon Hearn
Notes: svn path=/head/; revision=57695
2000-03-01Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn
of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
1999-12-13Fix grammar error. (missing verb)Bill Fumerola
Notes: svn path=/head/; revision=54579
1999-11-24Adjust man page: if command is specified, file name is mandatoryGuido van Rooij
Notes: svn path=/head/; revision=53670
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50477
1998-09-29Mention default time between output flushes in manual page.Joseph Koshy
PR: docs/8009 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> Notes: svn path=/head/; revision=39741
1998-06-04Fix a bunch of spelling errors.Steve Price
PR: 6856 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36649
1998-03-08Rewrite script as a select loop rather than as a twin reader/write process.Peter Wemm
This allows simple logging of keys sent to a session (turned on with -k). Also allow specifying the script file flush interval. Notes: svn path=/head/; revision=34295
1997-12-29script(1) has annoyed me with it's inflexable command argument parsingPeter Wemm
since I first saw it. I finally needed to pass arguments through to the spawned command badly enough (and urgently) that I threw this together. Notes: svn path=/head/; revision=32083
1997-08-08Add usage(). Use err(3) instead of local redefinition.Philippe Charnier
Notes: svn path=/head/; revision=27980
1994-05-27BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590