script(1) User Commands script(1)NAME
script - make record of a terminal session
script [-a] [filename]
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
script places everything that appears on the screen in filename, including prompts.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
|CSI |Enabled |
SEE ALSO attributes(5)WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.10 30 Jan 2004 script(1)
Check Out this Related Man Page
script(1) General Commands Manual script(1)NAME
script - Makes a transcript of terminal session
script [-a] [file]
The script command makes a transcript of everything printed on your terminal.
Appends the transcript to file rather than writing it to file.
The name of an output file that will contain the transcript of the session. If this parameter is omitted, the file typescript is written.
The transcript is written to file, or appended to file if the -a option is given. If no file name is given, the transcript is saved in the
The script ends when the forked shell exits.
This program is useful when you are using a CRT and want a hard-copy record of the dialog (for example, a technical writer might create an
example of a working session this way).
If you specify the -a option and the file does not exist, it is created.
If you do not specify the -a option and the file exists, it is replaced.
The script command requires a streams based terminal. In single user mode, streams may not be enabled. Under these circumstances, script
will exit with no action. If you are the superuser and need to run this command in single user mode, use the following special instruc-
If it is necessary to enable a streams environment in the single user mode, enter the command /sbin/init.d/streams. This command is avail-
able to the superuser only.
Commands: autopush(8), cat(1), echo(1), strsetup(8), tee(1)
I am trying to divide 2 variables that I got during the execution of script, but I unable to divide the variables. pls help. Hers is the code.
num_tasks=`sqlplus -s batch_user/batch_user@acsblest << EOF1
set heading off
SET FEEDBACK OFF
SET PAGESIZE 0
SET LINESIZE 900
select... (31 Replies)
Hello All I am a chemist and really dont know too much about programming but here goes.
Essentially I need to create a script that I can run which will do the following.
Create a file where the first four lines are a set of commands that are the same for all the files. E.g
ln1: comment... (40 Replies)
After reading a couple posts on the subject, I came up with the compilation of all advice (that are supposed to work on any situation) and wrote the following script.
But tell me something... Is it that crazy that there's no other way to get the same solution!!!
#!/bin/bash... (27 Replies)
I have to write a perl script that gets trashholds from a file and match them with an output of a command.
The trashhold file looks like this:
"pl-it_prod.GW.Sync.reply.*" "500" "-1" "" ""
"pl-it_prod.A.*" "100" "-1" "" ""
"application.log" ... (29 Replies)
hey all i was writing a script to
1. Rename a file upon the user's request. If the file exists, prompt the user for confirmation before renaming the file. The screen should prompt the user for
a. “Name of file you want to rename.” Use the “\c” escape character.
b. ... (36 Replies)
i am new to unix,i have never worked on scripting and all,i am learning now and i have to write a script to compare two files.
The requirement is like : in the first file i am searching for a word and after i get that word i have to select everything from the rest of the file and redirect... (34 Replies)
My system does not have wget, curl and lynx. The chances are low that the SA would install them for me. Do I have any other way out? I need to invoke a few URL calls from my SHELL script.
Thought of using a PERL script or writing a simple Java client, but that adds in more dependencies.
Any... (37 Replies)
I am trying to run stored procrdure from shell script which takes one argument. And also I want to verify in the script whether the script executed successfully. However the Stored procedure is not running from shell script. Manually if I run it update the data in the table.
Can... (29 Replies)
I'm trying to get this script to work i'm close but there's some wrong any help is welcome. I have a bunch of text files in a directory which are a list of numbers i'm trying to get this script to look for a random number in the list and tell me in which text file that number is.
---------- Post... (24 Replies)
I've a simple linux script (made by my friend), which adds users to the system from userlist file. it also creates user home dir and copies certain files to the directory. To be honest, am a newbie in scripting so am unable to fully understand how the script is working. unfortunately,... (30 Replies)
I want a script that change to a directory (the first param) and display all the files inside it
Why this really simple script don't change directory ?
echo $dates (25 Replies)
I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script.
Thanks in Advance !! (41 Replies)