On Fri, 2003-08-01 at 17:40, [EMAIL PROTECTED] wrote: > i wish to do a script for the terminal, like *.bat-file in windows. is this > possible? Most certainly, and more powerful than in the other 'os'.
Create a textfile with the commands you want to run, save it to disk, run the command chmod +x <filename> on it, and you have a runnable script. In order to be correct, you should start the script with #!/bin/sh That way the system knows where to look for the shell that the script has to use. E.g.: #!/bin/sh cd /home/mydir ls -l There are many editors to create a scriptfile, like vi, emacs (both text oriented) and also gedit, kedit (graphical). Use what you think is easiest for you. And don't play with the rm command. ;-) Good luck Paul -- If we sit down now we may get run over later. -Franklin D. Roosevelt http://www.nlpagan.net - Linux Mandrake - Ximian Evolution
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
