recode of the script command on Linux