diary — diary of session
diary('file-name')
diary creates a file which contains a copy of the current Scilab session. diary(0) interrupts the diary.