fatmcgav has asked for the wisdom of the Perl Monks concerning the following question:
The function call is:sub make_apachectl { my $apachectl = shift; my $dname = shift; my $apachectl_template = "/home/www/bin/files/bin/apachectl"; open( TEMPLATE, "<", $apachectl_template ) || die "Failed to open +apachectl template: $!\n"; open( TARGET, ">", $apachectl ) || die "Failed to create apachectl +: $!\n"; while( <TEMPLATE> ) { print TARGET ; } }
# Defining PID file allows multiple instances of Apache from the same +binary PIDFILE=/home/www/$dname/pid/$dname.pid # the path to your httpd binary, including options if necessary HTTPD='/usr/local/apache/bin/httpd -f /home/www/$dname/conf/httpd.conf +'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing variables from one file to another.
by Corion (Patriarch) on Jan 21, 2009 at 13:51 UTC | |
|
Re: Parsing variables from one file to another.
by jeffa (Bishop) on Jan 21, 2009 at 13:50 UTC | |
|
Re: Parsing variables from one file to another.
by hbm (Hermit) on Jan 21, 2009 at 14:02 UTC | |
by fatmcgav (Novice) on Jan 21, 2009 at 14:24 UTC | |
|
Re: Parsing variables from one file to another.
by fatmcgav (Novice) on Jan 26, 2009 at 09:24 UTC |