in reply to capturing compile errors
script makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the record is saved in the file typescript.
:-)