The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-25-2006
Ambikesh Ambikesh is offline
Registered User
  
 

Join Date: Feb 2006
Location: California
Posts: 45

Code:
startApache="/usr/local/apache2/bin/apachectl start"
if [ -f "$startApache" ] ; then
. $startApache
fi

OR


Code:
action=start
apache="/usr/local/apache2/bin/apachectl"
if [ -f "$apache" ] ; then
. $apache $action
fi