diff options
author | peter <peter@FreeBSD.org> | 1997-12-29 13:31:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-12-29 13:31:46 +0000 |
commit | c43811df0f3bbb4cf72506ab4631a3107f631ee3 (patch) | |
tree | fd5e1c700f95dabcf01adafb4b72d7d65233711a /usr.bin/script/script.1 | |
parent | 6ce389dcd3ca5e48ae7fe956e958367d36db2097 (diff) | |
download | FreeBSD-src-c43811df0f3bbb4cf72506ab4631a3107f631ee3.zip FreeBSD-src-c43811df0f3bbb4cf72506ab4631a3107f631ee3.tar.gz |
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.
Diffstat (limited to 'usr.bin/script/script.1')
-rw-r--r-- | usr.bin/script/script.1 | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1 index 7c1032f0..6c0f7d6 100644 --- a/usr.bin/script/script.1 +++ b/usr.bin/script/script.1 @@ -30,6 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)script.1 8.1 (Berkeley) 6/6/93 +.\" $Id$ .\" .Dd June 6, 1993 .Dt SCRIPT 1 @@ -40,7 +41,9 @@ .Sh SYNOPSIS .Nm .Op Fl a +.Op Fl q .Op Ar file +.Op Ar command ... .Sh DESCRIPTION .Nm Script makes a typescript of everything printed on your terminal. @@ -58,6 +61,13 @@ saves all dialogue in If no file name is given, the typescript is saved in the file .Pa typescript . .Pp +If the argument +.Ar command ... +is given, +.Nm +will run the specified command with an optional argument vector +instead of an interactive shell. +.Pp Option: .Bl -tag -width Ds .It Fl a @@ -66,9 +76,11 @@ Append the output to or .Pa typescript , retaining the prior contents. +.It Fl q +Run in quiet mode, omit the start and stop status messages. .El .Pp -The script ends when the forked shell exits (a +The script ends when the forked shell (or command) exits (a .Em control-D to exit the Bourne shell @@ -121,3 +133,6 @@ places .Sy everything in the log file, including linefeeds and backspaces. This is not what the naive user expects. +.Pp +It is not possible to specify a command without also naming the script file +because of argument parsing compatability issues. |