[KLUG Members] linux scripts

bill members@kalamazoolinux.org
Thu, 15 Aug 2002 15:34:53 -0400


In Dos/Win I could write a simple command line script with a bit of programming,
name the extension .bat and execute it whenever I want.

In Linux it appears I can do the same.  Just write command lines, save as text
and make it executable.

Now, I want to have some functionality in the code (if this, do that, else,
on_error, ...).  I'm thinking that in Linix, scripts can be handled by different
processors by using the #path_to_shell as the first line.  But, that's as far as
I know.

Is my "shell" thinking correct?

What would be the best way to add simple functionality to scripts?

Where could I find info on the proper syntax for the appropriate shell?

kind regards,

bill hollett