- Unix script command – http://www.softpanorama.org/Utilities/script.shtml
- Sample of What You’ll See Using the Unix script Command – http://ultra.pr.erau.edu/~jaffem/classes/cs125/script.htm
- The Unix script command – http://www-users.cs.umn.edu/~skim/cs1901/script.html
- Help in Creating a Script File on a Unix System – http://myweb.stedwards.edu/laurab/help/scripthelp.html
Implementation of the same functionality in Expect
Cygwin does not come with the “script” commands, so following implementation in Expect can do the same thing:
| script.expect |
#!/bin/expect
spawn /bin/bash
if {[lindex $argv 0]==""} {
log_file SESSION.txt
} else {
log_file [lindex $argv 0]
}
interact
|