History log of /freebsd-current/usr.bin/script/script.1
Revision Date Author Comments
# 8ceac8e1 26-Apr-2024 Kyle Evans <kevans@FreeBSD.org>

script: handle terminal resize on SIGWINCH

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


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

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


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 8e096e24 26-Oct-2022 Dag-Erling Smørgrav <des@FreeBSD.org>

script: Correct -F in man page and usage string.

Sponsored by: Klara, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37138


# 31fde973 10-Mar-2022 Simon J. Gerraty <sjg@FreeBSD.org>

script: use %n at the end of default tstamp_fmt

Since we are only outputting time-stamps when they differ
ending it with a newline, interferes with the output less.


# 6c4afed5 09-Mar-2022 Simon J. Gerraty <sjg@FreeBSD.org>

script add -T fmt to print time-stamps

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


# d41149a8 05-Jan-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

Add some examples to script.1

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


# 225afb6c 05-Jan-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

Improve readability of the options list

MFC after: 3 days


# 44a3c7a3 01-Sep-2020 Warner Losh <imp@FreeBSD.org>

Bump date for r365052


# f9177b6c 01-Sep-2020 Warner Losh <imp@FreeBSD.org>

Have script accept and ignore -e for Linux compat

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.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

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


# d7deff23 26-Aug-2015 Sergey Kandaurov <pluknet@FreeBSD.org>

Fix SEE ALSO.

The history mechanism applies to csh.

Sponsored by: Nginx, Inc.


# 914f6e62 26-Dec-2014 Joel Dahl <joel@FreeBSD.org>

mdoc: sort SEE ALSO.


# 8d105abc 04-Dec-2013 Tom Rhodes <trhodes@FreeBSD.org>

Add -F to flush output after each write. With this, I can
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.


# c89bc700 30-Jul-2013 David E. O'Brien <obrien@FreeBSD.org>

MFC'ing to 9.2.


# 99f23359 16-Mar-2013 Sergey Kandaurov <pluknet@FreeBSD.org>

Fix version in the .Fx macro.

Reported by: <deeptech71@gmail.com>


# 6cff4e07 26-Oct-2012 David E. O'Brien <obrien@FreeBSD.org>

Add "-f" to also output filemon(4) information.


# aee53c33 07-Oct-2012 Joel Dahl <joel@FreeBSD.org>

Remove contractions.


# fabb5579 30-Jul-2012 Brian Somers <brian@FreeBSD.org>

Mention when -d, -p and -r first hit FreeBSD.

Bump the document date to when the change was made (rather than when the PR
was submitted).

Suggested by: pluknet


# df53360c 30-Jul-2012 Brian Somers <brian@FreeBSD.org>

Add d, p and r switches for recording script sessions with timing data
and playing sessions back with or without time delays.

PR: 114465
Submitted by: ighighi at gmail dot com
MFC after: 3 weeks


# ef87c4dc 28-Sep-2011 Glen Barber <gjb@FreeBSD.org>

Fix a few grammar and mdoc nits in script.1

PR: 161088
Submitted by: Ben Kaduk ( kaduk % mit ! edu )
MFC after: 1 week
Need-MFC: 225809


# 29da7547 27-Sep-2011 Mikolaj Golub <trociny@FreeBSD.org>

When script(1) reads EOF from input it starts spinning on zero-byte
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


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# aa2e0334 18-Sep-2010 David E. O'Brien <obrien@FreeBSD.org>

Fix the grammar after I added a second environmental variable.

Submitted by: wxs


# 9b91846c 16-Sep-2010 David E. O'Brien <obrien@FreeBSD.org>

+ Add the SCRIPT environmental variable to the sub-shell. Its value is
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.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 557b7fa1 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Deal with double whitespace.


# 6a3e8b0a 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# c548db03 19-May-2004 Ruslan Ermilov <ru@FreeBSD.org>

Bumped document date.
Fixed markup nit.


# 4294ff16 22-Jan-2004 Sheldon Hearn <sheldonh@FreeBSD.org>

Fix SYNOPSIS of manual page, clustering no-arg options correctly.

Sync usage with manpage.


# fed771de 07-Sep-2003 Philippe Charnier <charnier@FreeBSD.org>

Introduce arguments the standard way. In .Ar command ..., ... is not an
argument, command is.


# e8937ba0 19-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

Use `The .Nm utility'


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# 62500372 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 2cb6b4ef 06-Mar-2000 Brian Feldman <green@FreeBSD.org>

Make a run-on sentence into two proper sentences, and clarify the meaning
a bit.


# 4e86fcac 02-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove more single-space hard sentence breaks.


# 87faa07b 29-Feb-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 128a149b 13-Dec-1999 Bill Fumerola <billf@FreeBSD.org>

Fix grammar error. (missing verb)


# 72558534 24-Nov-1999 Guido van Rooij <guido@FreeBSD.org>

Adjust man page: if command is specified, file name is mandatory


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 4cbaceab 28-Sep-1998 Joseph Koshy <jkoshy@FreeBSD.org>

Mention default time between output flushes in manual page.

PR: docs/8009
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>


# 32c21313 04-Jun-1998 Steve Price <steve@FreeBSD.org>

Fix a bunch of spelling errors.

PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>


# e8eb82a8 08-Mar-1998 Peter Wemm <peter@FreeBSD.org>

Rewrite script as a select loop rather than as a twin reader/write process.
This allows simple logging of keys sent to a session (turned on with -k).
Also allow specifying the script file flush interval.


# 51afb8df 29-Dec-1997 Peter Wemm <peter@FreeBSD.org>

script(1) has annoyed me with it's inflexable command argument parsing
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.


# 236d2f55 07-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Add usage(). Use err(3) instead of local redefinition.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources