Recent Changes - Search:

Softwares

.

Command-Recorder

Getting started with terminal record session

Packages Needed: util-linux-ng :

[shvarugh@scientificlinux, load: 0.08] (Fri Oct 10 - 05:31:44)
~ $ rpm -qf /usr/bin/script
util-linux-ng-2.17.2-12.14.el6.x86_64
[shvarugh@scientificlinux, load: 0.08] (Fri Oct 10 - 05:31:51)
~ $ 

Starting the Script Command

shvarugh@scientificlinux, load: 0.00] (Fri Oct 10 - 05:18:08)
~ $ script -t -a 2> t.txt r.txt
Script started, file is r.txt

Man Page

SCRIPT(1)                 BSD General Commands Manual                SCRIPT(1)

NAME
     script - make typescript of terminal session

SYNOPSIS
     script [-a] [-c COMMAND] [-f] [-q] [-t] [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.

     Options:

     -a      Append the output to file or typescript, retaining the prior con-
             tents.

     -c COMMAND
             Run the COMMAND rather than an interactive shell.  This makes it
             easy for a script to capture the output of a program that behaves
             differently when its stdout is not a tty.

     -f      Flush output after each write. This is nice for telecooperation:
             One person does ‘mkfifo foo; script -f foo’ and another can
             supervise real-time what is being done using ‘cat foo’.

     -q      Be quiet.

     -t      Output timing data to standard error. This data contains two
             fields, separated by a space. The first field indicates how much
             time elapsed since the previous output. The second field indi-
             cates how many characters were output this time. This information
             can be used to replay typescripts with realistic typing and out-
             put delays.

To replay

[shvarugh@scientificlinux, load: 0.08] (Fri Oct 10 - 05:27:46)
~ $ scriptreplay t.txt r.txt 
[shvarugh@scientificlinux, load: 0.25] (Fri Oct 10 - 05:20:40)

Other packages

[shvarugh@scientificlinux, load: 0.08] (Fri Oct 10 - 05:31:51)
~ $ rpm -ql util-linux-ng-2.17.2-12.14.el6.x86_64
/bin/dmesg
/bin/findmnt
/bin/kill
/bin/logger
/bin/login
/bin/lsblk
/bin/more
/bin/mount
/bin/raw
/bin/taskset
/bin/umount
/etc/pam.d/chfn
/etc/pam.d/chsh
/etc/pam.d/login
/etc/pam.d/remote
/etc/udev/rules.d/60-raw.rules
/lib64/libmount.so.1
/lib64/libmount.so.1.1.0
/sbin/addpart
/sbin/agetty
/sbin/blkdiscard
/sbin/blkid
/sbin/blockdev
/sbin/cfdisk
/sbin/chcpu
/sbin/clock
/sbin/ctrlaltdel
/sbin/delpart
/sbin/fdisk
/sbin/findfs
/sbin/fsck
/sbin/fsck.cramfs
/sbin/fsfreeze
/sbin/fstrim
/sbin/hwclock
/sbin/losetup
/sbin/mkfs
/sbin/mkfs.cramfs
/sbin/mkswap
/sbin/mount.tmpfs
/sbin/nologin
/sbin/partx
/sbin/pivot_root
/sbin/sfdisk
/sbin/swapoff
/sbin/swapon
/sbin/switch_root
/sbin/wipefs
/usr/bin/cal
/usr/bin/chfn
/usr/bin/chrt
/usr/bin/chsh
/usr/bin/col
/usr/bin/colcrt
/usr/bin/colrm
/usr/bin/column
/usr/bin/ddate
/usr/bin/fallocate
/usr/bin/flock
/usr/bin/floppy
/usr/bin/getopt
/usr/bin/hexdump
/usr/bin/i386
/usr/bin/ionice
/usr/bin/ipcmk
/usr/bin/ipcrm
/usr/bin/ipcs
/usr/bin/isosize
/usr/bin/kill
/usr/bin/linux32
/usr/bin/linux64
/usr/bin/logger
/usr/bin/look
/usr/bin/lscpu
/usr/bin/mcookie
/usr/bin/namei
/usr/bin/rename
/usr/bin/renice
/usr/bin/rev
/usr/bin/script
/usr/bin/scriptreplay
/usr/bin/setarch
/usr/bin/setsid
/usr/bin/setterm
/usr/bin/tailf
/usr/bin/ul
/usr/bin/unshare
/usr/bin/uuidgen
/usr/bin/whereis
/usr/bin/write
/usr/bin/x86_64
/usr/sbin/fdformat
/usr/sbin/hwclock
/usr/sbin/ldattach
/usr/sbin/readprofile
/usr/sbin/rtcwake
/usr/sbin/tunelp
/usr/share/doc/util-linux-ng-2.17.2
/usr/share/doc/util-linux-ng-2.17.2/AUTHORS
/usr/share/doc/util-linux-ng-2.17.2/COPYING.GPL
/usr/share/doc/util-linux-ng-2.17.2/COPYING.UCB
/usr/share/doc/util-linux-ng-2.17.2/NEWS
/usr/share/doc/util-linux-ng-2.17.2/README
/usr/share/doc/util-linux-ng-2.17.2/README.cal
/usr/share/doc/util-linux-ng-2.17.2/README.cfdisk
/usr/share/doc/util-linux-ng-2.17.2/README.clear
/usr/share/doc/util-linux-ng-2.17.2/README.col
/usr/share/doc/util-linux-ng-2.17.2/README.ddate
/usr/share/doc/util-linux-ng-2.17.2/README.devel
/usr/share/doc/util-linux-ng-2.17.2/README.fdisk
/usr/share/doc/util-linux-ng-2.17.2/README.floppy
/usr/share/doc/util-linux-ng-2.17.2/README.flushb
/usr/share/doc/util-linux-ng-2.17.2/README.getty
/usr/share/doc/util-linux-ng-2.17.2/README.hwclock
/usr/share/doc/util-linux-ng-2.17.2/README.licensing
/usr/share/doc/util-linux-ng-2.17.2/README.modems-with-agetty
/usr/share/doc/util-linux-ng-2.17.2/README.mount
/usr/share/doc/util-linux-ng-2.17.2/README.namei
/usr/share/doc/util-linux-ng-2.17.2/README.namei2
/usr/share/doc/util-linux-ng-2.17.2/README.poeigl
/usr/share/doc/util-linux-ng-2.17.2/getopt-parse.bash
/usr/share/doc/util-linux-ng-2.17.2/getopt-parse.tcsh
/usr/share/doc/util-linux-ng-2.17.2/getopt-test.bash
/usr/share/doc/util-linux-ng-2.17.2/getopt-test.tcsh
/usr/share/doc/util-linux-ng-2.17.2/sfdisk.examples
/usr/share/info/ipc.info.gz
/usr/share/locale/ca/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/cs/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/da/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/de/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/es/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/et/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/eu/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/fi/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/fr/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/hu/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/id/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/it/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/ja/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/nl/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/pl/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/pt_BR/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/ru/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/sl/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/sv/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/tr/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/uk/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/vi/LC_MESSAGES/util-linux-ng.mo
/usr/share/locale/zh_CN/LC_MESSAGES/util-linux-ng.mo
/usr/share/man/man1/cal.1.gz
/usr/share/man/man1/chfn.1.gz
/usr/share/man/man1/chrt.1.gz
/usr/share/man/man1/chsh.1.gz
/usr/share/man/man1/col.1.gz
/usr/share/man/man1/colcrt.1.gz
/usr/share/man/man1/colrm.1.gz
/usr/share/man/man1/column.1.gz
/usr/share/man/man1/ddate.1.gz
/usr/share/man/man1/dmesg.1.gz
/usr/share/man/man1/fallocate.1.gz
/usr/share/man/man1/flock.1.gz
/usr/share/man/man1/getopt.1.gz
/usr/share/man/man1/hexdump.1.gz
/usr/share/man/man1/ionice.1.gz
/usr/share/man/man1/ipcmk.1.gz
/usr/share/man/man1/ipcrm.1.gz
/usr/share/man/man1/ipcs.1.gz
/usr/share/man/man1/kill.1.gz
/usr/share/man/man1/logger.1.gz
/usr/share/man/man1/login.1.gz
/usr/share/man/man1/look.1.gz
/usr/share/man/man1/lscpu.1.gz
/usr/share/man/man1/mcookie.1.gz
/usr/share/man/man1/more.1.gz
/usr/share/man/man1/namei.1.gz
/usr/share/man/man1/readprofile.1.gz
/usr/share/man/man1/rename.1.gz
/usr/share/man/man1/renice.1.gz
/usr/share/man/man1/rev.1.gz
/usr/share/man/man1/script.1.gz
/usr/share/man/man1/scriptreplay.1.gz
/usr/share/man/man1/setsid.1.gz
/usr/share/man/man1/setterm.1.gz
/usr/share/man/man1/tailf.1.gz
/usr/share/man/man1/taskset.1.gz
/usr/share/man/man1/ul.1.gz
/usr/share/man/man1/unshare.1.gz
/usr/share/man/man1/uuidgen.1.gz
/usr/share/man/man1/whereis.1.gz
/usr/share/man/man1/write.1.gz
/usr/share/man/man5/fstab.5.gz
/usr/share/man/man8/addpart.8.gz
/usr/share/man/man8/agetty.8.gz
/usr/share/man/man8/blkdiscard.8.gz
/usr/share/man/man8/blkid.8.gz
/usr/share/man/man8/blockdev.8.gz
/usr/share/man/man8/cfdisk.8.gz
/usr/share/man/man8/chcpu.8.gz
/usr/share/man/man8/clock.8.gz
/usr/share/man/man8/ctrlaltdel.8.gz
/usr/share/man/man8/delpart.8.gz
/usr/share/man/man8/fdformat.8.gz
/usr/share/man/man8/fdisk.8.gz
/usr/share/man/man8/findfs.8.gz
/usr/share/man/man8/findmnt.8.gz
/usr/share/man/man8/floppy.8.gz
/usr/share/man/man8/fsck.8.gz
/usr/share/man/man8/fsfreeze.8.gz
/usr/share/man/man8/fstrim.8.gz
/usr/share/man/man8/hwclock.8.gz
/usr/share/man/man8/i386.8.gz
/usr/share/man/man8/isosize.8.gz
/usr/share/man/man8/ldattach.8.gz
/usr/share/man/man8/linux32.8.gz
/usr/share/man/man8/linux64.8.gz
/usr/share/man/man8/losetup.8.gz
/usr/share/man/man8/lsblk.8.gz
/usr/share/man/man8/mkfs.8.gz
/usr/share/man/man8/mkswap.8.gz
/usr/share/man/man8/mount.8.gz
/usr/share/man/man8/nologin.8.gz
/usr/share/man/man8/partx.8.gz
/usr/share/man/man8/pivot_root.8.gz
/usr/share/man/man8/raw.8.gz
/usr/share/man/man8/rawdevices.8.gz
/usr/share/man/man8/rtcwake.8.gz
/usr/share/man/man8/setarch.8.gz
/usr/share/man/man8/sfdisk.8.gz
/usr/share/man/man8/swapoff.8.gz
/usr/share/man/man8/swapon.8.gz
/usr/share/man/man8/switch_root.8.gz
/usr/share/man/man8/tunelp.8.gz
/usr/share/man/man8/umount.8.gz
/usr/share/man/man8/wipefs.8.gz
/usr/share/man/man8/x86_64.8.gz
/var/log/lastlog
[shvarugh@scientificlinux, load: 0.08] (Fri Oct 10 - 05:32:32)
~ $ 
Edit - History - Print - Recent Changes - Search
Page last modified on October 10, 2014, at 07:37 AM