Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...