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 -->
  #4 (permalink)  
Old 06-26-2006
coolboarderguy coolboarderguy is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 7
Quote:
Originally Posted by Ambikesh
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
Hi All,

the 1st one didn't work, but the 2nd one did. Why wouldn't the 1st one work? Cheers.

coolboarderguy...