Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix script command

Quick links

About script
Syntax
Examples
Linux / Unix main page

About script

Records everything printed on your screen. The record is recorded to the filename, if no filename is specified results are recorded to the file transcript.

Syntax

script [-a]  filename

-a  Append the session record to filename, rather than overwrite it.
filename The name of the file that you wish the results to be stored.

Examples

script myfile.txt - Will log all results into the file myfile.txt. This will open a sub-shell and records all information through this session. The script ends when the forked shell exits (user types exit) or when CTRL-D is typed.

Note: If the script file is deleted during the script process the script still remains in memory however will not log the results.

 

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope