Unix and Linux Discussions Tagged with amp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
7,655 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,679 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,954 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,314 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,182 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,270 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
30,211 |
Solaris |
|
|
|
5 |
2,386 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,034 |
What is on Your Mind? |
|
|
|
33 |
26,755 |
Solaris |
|
|
|
2 |
3,474 |
Solaris |
|
|
|
2 |
3,311 |
IP Networking |
|
|
|
2 |
2,865 |
AIX |
|
|
|
0 |
1,461 |
Software Releases - RSS News |
|
|
|
2 |
7,210 |
Solaris |
|
|
|
2 |
1,991 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,820 |
Programming |
|
|
|
0 |
2,177 |
OS X Support RSS |
|
|
|
1 |
28,267 |
Shell Programming and Scripting |
|
|
|
0 |
1,868 |
Solaris BigAdmin RSS |
|
|
|
7 |
11,962 |
Ubuntu |
|
|
|
0 |
1,216 |
Complex Event Processing RSS News |
|
|
|
0 |
1,706 |
Cartoons for Geeks |
|
|
|
0 |
1,121 |
Software Releases - RSS News |
|
|
|
6 |
4,480 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,360 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,241 |
Cartoons for Geeks |
|
|
|
0 |
1,639 |
Complex Event Processing RSS News |
|
|
|
0 |
2,259 |
Cartoons for Geeks |
|
|
|
0 |
2,925 |
HP Server News and Podcasts RSS |
|
|
|
0 |
1,561 |
MySQL DevZone RSS |
|
|
|
5 |
6,234 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,581 |
Complex Event Processing RSS News |
|
|
|
3 |
5,482 |
UNIX and Linux Applications |
|
|
|
6 |
9,773 |
Solaris |
|
|
|
0 |
2,157 |
Cartoons for Geeks |
|
|
|
0 |
1,675 |
Cartoons for Geeks |
|
|
|
2 |
4,615 |
OS X (Apple) |
|
|
|
3 |
2,094 |
Shell Programming and Scripting |
|
|
|
0 |
852 |
Software Releases - RSS News |
SCRIPT(1) BSD General Commands Manual SCRIPT(1)
NAME
script -- make typescript of terminal session
SYNOPSIS
script [-adfpqr] [-c command] [file]
DESCRIPTION
script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive
session as proof of an assignment, as the typescript file can be printed out later with lpr(1).
If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.
Option:
-a Append the output to file or typescript, retaining the prior contents.
-c command
Run the named command instead of the shell. Useful for capturing the output of a program that behaves differently when associated
with a tty.
-d When playing back a session with the -p flag, don't sleep between records when playing back a timestamped session.
-f Flush output after each write. This is useful for watching the script output in real time.
-p Play back a session recorded with the -r flag in real time.
-q Be quiet, and don't output started and ended lines.
-r Record a session with input, output, and timestamping.
The script ends when the forked shell exits (a control-D to exit the Bourne shell (sh(1)), and exit, logout or control-d (if ignoreeof is not
set) for the C-shell, csh(1)).
Certain interactive commands, such as vi(1), create garbage in the typescript file. script works best with commands that do not manipulate
the screen, the results are meant to emulate a hardcopy terminal.
ENVIRONMENT
The following environment variable is used by script:
SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most
shells set this variable automatically).
SEE ALSO
csh(1) (for the history mechanism).
HISTORY
The script command appeared in 3.0BSD.
BUGS
script places everything in the log file, including linefeeds and backspaces. This is not what the naive user expects.
BSD
October 17, 2009 BSD