SCRIPT(1) UNIX Programmer's Manual SCRIPT(1) NAME script - make typescript of terminal session SYNOPSIS script [ -a ] [ -n ] [ -q ] [ -s ] [ -S shell ] [ file ] DESCRIPTION _S_c_r_i_p_t makes a typescript of everything printed on your ter- minal. The typescript is saved in a file, and can be sent to the line printer later with _l_p_r. If _f_i_l_e is given, the typescript is saved there. If not, the typescript is saved in the file _t_y_p_e_s_c_r_i_p_t. To exit _s_c_r_i_p_t, type control-D. This sends an end of file to all processes you have started up, and causes _s_c_r_i_p_t to exit. For this reason, control-D behaves as though you had typed an infinite number of control-D's. This program is useful when using a crt and a hard-copy record of the dialog is desired, as for a student handing in a program that was developed on a crt when hard-copy termi- nals are in short supply. The options are: -a Append to the typescript file instead of creating a new file. -n Use the ``new'' shell (interpretation of ``new'' is installation dependent). -q Suppress the ``script started'' and ``script done'' messages. -s Use the ```standard'' shell (usually _s_h(1)). -S Use _s_h_e_l_l. If the requested shell is not available, _s_c_r_i_p_t uses any shell it can find. AUTHOR Mark Horton BUGS Since UNIX has no way to write an end-of-file down a pipe without closing the pipe, there is no way to simulate a sin- gle control-D without ending _s_c_r_i_p_t. The new shell has its standard input coming from a pipe rather than a tty, so _s_t_t_y(1) will not work, and neither will _t_t_y_n_a_m_e(1). When the user interrupts a printing process, _s_c_r_i_p_t attempts to flush the output backed up in the pipe for better response. Usually the next prompt also gets flushed. Printed 7/25/83 1