Results 1 to 2 of 2
I am trying to create a scripts where you multipul things for and example
Restart Apache
Restart FTP
ETC all in a script where if i type in somthing like
...
- 01-11-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 1
Custome Script Question
I am trying to create a scripts where you multipul things for and example
Restart Apache
Restart FTP
ETC all in a script where if i type in somthing like
./program -restart -apache
it will restart only apache
./program - restart - ftp
it will restart ftp
./program -restart -apache-ftp
it will restart both
is there a tutorial that that teaches these if then commands and other necessary things in order to make somthing like this? is it possible?
i am pretty new to linux so this may sound dum for all i know lol. sorry if it is.
- 01-11-2008 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
A link to a beginners guide, chapter 7 discusses the conditional statements:
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
Regards


Reply With Quote