What's a script?
David Fox
dfox94085 at gmail.com
Sun Jul 12 23:02:10 UTC 2009
On Sun, Jul 12, 2009 at 3:37 PM, Mark C. Miller<mr.mcmiller at gmail.com> wrote:
> What does the author mean by a "script"? Is this a particular
> programming language? Once you get it written, whatever you write it in,
Usually, these are shell scripts. Shell scripts are programs that are
usually written in the shell programming language, or bash. They can
also be written in perl, and they'd be referred to sometimes as perl
scripts.
Shell scripts are executed by the shell directly. They are a series of
(mostly) uriix commands but they can also contain other programming
directives, like any other interpreted or compiled programming
language.
A shell script has to be executable before it is used.
$ chmod +x ./myscript
Then you can just do:
$ ./myscript
to execute it.
--
thanks for letting me change the magnetic patterns on your hard disk.
More information about the ubuntu-users
mailing list