savetheWorld 1201494896 learn use any editor, open a new file, place the commands in the file one per line, place #!/bin/bash as the first line, save and close the file, do "chmod +x filename" OK, now you can run that fiel as a script. TheBonsai 1201494989 forget TheBonsai 1201494999 learn use any editor, open a new file, place the commands in the file one per line, place #!/bin/bash as the first line, save and close the file, do "chmod +x filename" OK, now you can run that file as a script. dualbus 1428093144 forget dualbus 1428093147 learn script(1) allows you to record an interactive session in a terminal. Also, you can use it instead of expect(1) for simple tasks, because it creates a pty.