On Aug 15, 2005, at 3:09 PM, Evan Chaney wrote:

I added:

source /sw/bin/init.csh

to the apachectl script, but that resulted in errors when executing "sudo apachectl restart."

[evans-powerbook:/usr/sbin] evan% sudo apachectl restart
/usr/sbin/apachectl: line 30: alias: append_path: not found
/usr/sbin/apachectl: line 30: alias: if ( $\!:1 !~ \!:2\:* && $\!: 1 !~ *\:\!:2\:* && $\!:1 !~ *\:\!:2 && $\!:1 !~ \!:2 ) setenv \!:1 $ {\!:1}\:\!:2: not found
/usr/sbin/apachectl: line 32: alias: prepend_path: not found
/usr/sbin/apachectl: line 32: alias: if ( $\!:1 !~ \!:2\:* && $\!: 1 !~ *\:\!:2\:* && $\!:1 !~ *\:\!:2 && $\!:1 !~ \!:2 ) setenv \!:1 \!:2\:${\!:1}; if ( $\!:1 !~ \!:2\:* ) setenv \!:1 \!:2`echo \:${\!: 1} | /usr/bin/sed -e s%^\!:2\:%% -e s%:\!:2\:%:%g -e s%:\!:2\$%%`: not found /usr/sbin/apachectl: /sw/bin/init.csh: line 115: syntax error near unexpected token `(' /usr/sbin/apachectl: /sw/bin/init.csh: line 115: ` foreach i ( /sw/ etc/profile.d/*.csh )'
/usr/sbin/apachectl restart: httpd restarted
[evans-powerbook:/usr/sbin] evan%


On Aug 15, 2005, at 2:03 PM, Martin Costabel wrote:


You could put the source command into the shell script /usr/sbin/ apachectl and see if this helps.

Is apachectl csh compatible though? I think it's an sh script probably :).
-Garrett


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to