hostbox
10-16-2004, 01:25 AM
I was wondering, is it possible to create a lets say .sh file that can use commands like in shell? Each time we setup a server we setup a bunch of things, if we could make a script that can install everything and download and stuff it would be great.
If it's possible please point me in the right direction.
folsom
10-16-2004, 02:19 AM
put all of your commands in a file and type
sh filename
or you could add
#!/bin/sh
at the top of that same file and
chmod +x filename
which would let you just type
./filename
[eXtract] Linux
10-16-2004, 09:18 PM
If you need help setting up your BASH file id be willing to help you to an extent =). Message me on aim if you need help AIM: IAEtheral
Schumie
10-17-2004, 10:09 AM
Francisco, we have setup scripts for all the servers we install (from using a Redhat/ Fedora 'kickstart' file, to the installation and configuration of openssl, apache, php, ssh, mm, sendmail, bind etc..
Drop me a PM or i'm on MSN: msn@stevewrightonline.co.uk if you want to talk shell :)
AbEnd
10-17-2004, 09:12 PM
Originally posted by Francisco
I was wondering, is it possible to create a lets say .sh file that can use commands like in shell?
YEah. .sh files are interpreted using the shell. Code in .sh files works exactly the same way as code typed interactively at the shell. That's why they are called "shell scripts".