This is a discussion on is there such a thing as a batch program in linux (like in dos) within the Apache Web Server forums, part of the Web Server and Related Forums category; does anyone know if there is a batch program equivelent in linux to execute shell commands thanks...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
chris <someone@here.com> wrote:
> does anyone know if there is a batch program equivelent in linux to execute > shell commands Is called a shell script. Davide -- | Sex without love is an empty experience, but, as empty experiences go, | it's one of the best. | | |
|
|||
|
chris wrote:
> does anyone know if there is a batch program equivelent in linux to > execute shell commands > > thanks It gets better, you can use several script languages for your scripts. Linux is a script heaven. (and a nightmare sometimes) Perl, Bash/sh, PHP, et cetera et cetera, all kinds of flavours can be (made) available. Do a google for: writing linux shell scripts tutorial. Loads and loads of good info. HTH Pjotr |
|
|||
|
On Fri, 30 Jul 2004 18:21:09 +0800, "chris" <someone@here.com> wrote:
>does anyone know if there is a batch program equivelent in linux to execute >shell commands > >thanks > How many newsgroups did you post your homework assignment in? Mike- -- If you're not confused, you're not trying hard enough. -- Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If email from you bounces, try non-HTML, non-encoded, non-attachments, |
|
|||
|
: On Fri, 30 Jul 2004 18:21:09 +0800, "chris" <someone@here.com> wrote:
: >does anyone know if there is a batch program equivelent in linux to execute : >shell commands : > : >thanks : > If you are not making any decisions in the script, you can just enter the commands one line at a time, and make the resulting 'bat' file executable. It works because shell scripts are interpreted by the same shell you interact with (assuming you don't use the gui exclusively) Regards, James Phillips |
|
|||
|
On Fri, 30 Jul 2004, chris wrote:
> does anyone know if there is a batch program equivelent in linux to execute > shell commands Yes, someone does know! :-) They will all usually start with the same three characters: #!/ The slash will be part of a file pathname of the shell program to run. |