ch4ostw31v3 wrote:
> I am a little new to Linux, and wanted to know if Linux had it's own
> way of allowing someone queue up some commands and then execute them
> in order (the way DOS did with BATCH files)?

Yes. Shell scripting in *nix is basically the same animal as writing DOS 
batch files, except, as Michael has already mentioned, *nix scripting is 
more powerful and versatile.

There is more than a single shell that you can use, too, but most Linux 
distros default to the bash shell.

If you search Google with the term 'bash shell scripting tutorial' you 
will get a lot of hits, one of them being:

http://pegasus.rutgers.edu/~elflord/unix/bash-tute.html

*nix does not depend on file name extensions (like *.bat) to the extent 
that DOS/Windows does, for making files executable. Instead, permissions 
are used:

$ man chmod

...so after you write your shell script, you will have to make it an 
executable file, by assigning permissions to execute it.

Also, one thing that can cause confusion, is that when you test your new 
shell script, if it is in a directory that is not on the $PATH 
environmental variable, it will not execute, unless you precede it with ./

DOS will always check both $PATH and the present working directory, but 
*nix will not automatically check pwd.


-- 
-wittig http://www.robertwittig.com/
.       http://robertwittig.net/



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to