This README documents the why, the what, and the how of this repository
/!\ This software is experimental, you SHOULD NOT use it if you're looking for the original script utility /!\
- An illustration of my C skills
- Was a school project
From Wikipedia:
"The script command is a Unix utility that records a terminal session. The session is captured in a file. The scriptreplay command offers a replay function to script. The advantage of sessions recorded in this format from the usual screencasts is that shell instructions can be easily copy/pasted from the player screen."
$ cd
$ git clone https://github.com/grenadingue/script.git
$ cd script
$ make
$ ./script --help
Usage:
script [option] [file]
Options:
-a, --append append the output
-c, --command <command> run command rather than interactive shell
-f, --force use output file even when it is a link
-V, --version output version information and exit
-h, --help display this help and exit
$ pwd
/home/username/script
$ ls
LICENSE Makefile README.md script source
$ ./script
Script started, file is typescript
$ ls
LICENSE Makefile README.md script source typescript
$ echo "Foobar"
Foobar
$ exit
exit
Script done, file is typescript
$ cat typescript
Script started on Fri 01 May 2015 09:21:14 PM CEST
$ ls
LICENSE Makefile README.md script source typescript
$ echo "Foobar"
Foobar
$ exit
exit
Script done on Fri 01 May 2015 09:21:19 PM CEST
- Experimental, you SHOULD NOT use it if you're looking for the original script utility
- Originaly designed for Opensuse 12 and Debian 7 x86_64, but it should work with other distributions and architectures
- Known bugs with terminal capabilities (window size...)
- Nicolas Chauvin [email protected]