[KLUG Members] linux scripts
Stu Gillis
members@kalamazoolinux.org
Thu, 15 Aug 2002 15:46:58 -0400 (EDT)
--------------Boundary-00=_AMHWWNSS4VAOO49D7TH0
Content-Type: Text/Plain
Content-Transfer-Encoding: 7bit
> 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.
Yes but make sure you chmod it to 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?
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?
http://rute.sourceforge.net/rute.html
Has some examples to get you started.
_________________________________________________________________
http://fastmail.ca/ - Fast Secure Web Email for Canadians
--------------Boundary-00=_AMHWWNSS4VAOO49D7TH0--