| PLEX86 | ||
|
Does FC4 have batch file 23
Yes. There is not a filename extension ".bat", but instead, you set the permission bits to make the batch file (it is called script) "executable". I will first say a few words about "permission bits" and "executable". Try the command "ls -l". The output looks like this: Does FC4 have batch file 24 On Thu, 05 Jan 2006 07:13:58 -0800, CAPSKOV *NIX has shell scripts which are much more powerful than a DOS batch file. There are a number of common shells that are on your... -rw-r--r-- 1 root root 1528 Jan 3 17:04 udevlog -rwxrwxr-x 1 quique quique 5477 Dec 28 19:10 w -rw-rw-r-- 1 quique quique 538 Dec 28 19:10 w.c -rw------- 1 quique quique 33243 Jan 5 19:16 xses-quique.kw4vZ9 The strange accumulation of letters to the left, show the permission bits. There are nine bits, three apply to the owner of the file, three to members of the group buttociated with the file (each file has an owner and a group), and three bits are for others. "r" means can read, "w" means "can write", and "x", "can execute". You probably need to google around a little to find a better (more complete) explanations. In principle, it is also explained in man-pages like (try the commands:) man ls man chmod man 2 chmod but in practice those pages are very hard to read for newbies. (Please do look at them, though. Yust give them a minute and see how much sense you can make of them.) You write a script, say you call it "afternoon". In the first line, you must put Dual boot problem 27 aspects for layers don't ramifications. tasks, Thank you for that clear buttessment. I had begun... #!-bin-bash and then you run the command chmod a+x afternoon to make it executable. Then you can run them as commands. Say, e.g. .-afternoon Here ".-" is to specify what directory the script is in. If you are happy with a script, you can save yourself specifying the directory where the script resides, by moving the script to one of the directories listed with the command echo $PATH (Notice that : is a separator.) The commands you put inside a script are the same as you put on the command line, and some more. The "bible" is man bash Dual boot problem 26 You should perhaps be aware that, quite independent of the usability aspects of GUI tools vs command line tools, the linux tradition is command-line, for good or for bad, and the... but again, it is very hard to understand. Use google and try "bash tutorial" or "script tutorial", etc. Be aware that there are **many** other script languages than bash! Try to figure out if the web pages you find are about bash or "bourne again shell". Pages about "korn shell", "unix shell", "Bourne shell", etc., or just "shell" are usually OK too, there are some small differences but you will notice. When you have learned more, you will begin to use "man bash" to look up details you are unsure about. -Enrique
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||