On 15 Feb 2002 14:42:50 +0900 Charles wrote: >I have been going through some Linux books, and I get the general idea, >but I am not sure exactly how to go about this. > >I have a backup that I want to run daily, that goes something like this > >$ tar cvzf /mnt/win_d/docs/e-mail/evolution/evol.tar.gz >/home/chuck/evolution > > >I would like to save this in a file that I can run as a command, like a >BAT file in DOS. I assume then, that I would save this script in a text >file. Then, what else should I do, in terms of naming, or other >preparation, to have it available as a command?
You can name the file anything you want. Linux supported long names long before Windows/Dos did. Then you can run chmod +x <filename> to make it executable (set the execute attribute). After that you can run it as./<filename> ./ means "in this directory" Paul -- The key to change . . . is to let go of fear. -Rosanne Cash http://nlpagan.net - Registered Linux User 174403 Linux Mandrake 8.0 - Sylpheed 0.7.1
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com