SV: SV: Mod_perl + cronolog

2006-11-09 Thread Tue Topholm
: Tue Topholm Cc: modperl@perl.apache.org Emne: Re: SV: Mod_perl + cronolog Tue Topholm wrote: > Any idea what it could be? I believe Charlie Garrison already told you the answer: you have to escape the % symbols in your double-quoted string. They will be interpreted by perl as has

Re: SV: Mod_perl + cronolog

2006-11-08 Thread Perrin Harkins
Tue Topholm wrote: Any idea what it could be? I believe Charlie Garrison already told you the answer: you have to escape the % symbols in your double-quoted string. They will be interpreted by perl as hashes. CustomLog => qq{"|/usr/sbin/cronolog /home/log/$domain-access_log.%Y-%m-%d" Tr

SV: Mod_perl + cronolog

2006-11-08 Thread Tue Topholm
ue Topholm Device.Webbureau M: +45 26 74 07 41 P: +45 70 21 00 04 LinkedIN: http://www.linkedin.com/in/ttopholm -Oprindelig meddelelse- Fra: Dondi M. Stroma [mailto:[EMAIL PROTECTED] Sendt: 9. november 2006 02:31 Til: modperl@perl.apache.org Emne: Re: Mod_perl + cronolog It seems like this is

Re: Mod_perl + cronolog

2006-11-08 Thread Dondi M. Stroma
q{"|/usr/sbin/cronolog /home/log/$domain-access_log.%Y-%m-%d" combined} - Original Message - From: "Tue Topholm" <[EMAIL PROTECTED]> To: "'Lupe Christoph'" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, November 08, 2006 1:32 PM Subject: SV: M

Re: SV: Mod_perl + cronolog

2006-11-08 Thread Lupe Christoph
On Wednesday, 2006-11-08 at 19:32:05 +0100, Tue Topholm wrote: > I don't have problem with this, it works just fine... Let me be explicit: that is shitty Perl code. I have no idea what is causing your real problem, but you should not write code like that. What you did is write a shell script in P

Re: SV: Mod_perl + cronolog

2006-11-08 Thread Charlie Garrison
Good morning, On 8/11/06 at 7:32 PM +0100, Tue Topholm <[EMAIL PROTECTED]> wrote: >It is this line: > >CustomLog => "|/usr/sbin/cronolog /home/log/$domain-access_log.%Y-%m-%d >combined", Try using single quotes or escaping the percent characters. Charlie -- Charlie Garrison <[EMAIL PROTE

SV: Mod_perl + cronolog

2006-11-08 Thread Tue Topholm
dIN: http://www.linkedin.com/in/ttopholm -Oprindelig meddelelse- Fra: Lupe Christoph [mailto:[EMAIL PROTECTED] Sendt: 8. november 2006 14:43 Til: Tue Topholm Cc: modperl@perl.apache.org Emne: Re: Mod_perl + cronolog On Wednesday, 2006-11-08 at 13:10:54 +0100, Tue Topholm wrote: > I

Re: Mod_perl + cronolog

2006-11-08 Thread Lupe Christoph
On Wednesday, 2006-11-08 at 13:10:54 +0100, Tue Topholm wrote: > I have this script: Not related to your question, but to Perl style... > system("/bin/mkdir /home/$domain"); > system("/bin/mkdir /home/$domain/www"); > system("/bin/mkdir /home/$domain/ErrorLog"); I think you should review perldoc

Mod_perl + cronolog

2006-11-08 Thread Tue Topholm
I have this script: use DBI; my ($sth, $dbh, $domain, $domainID, $created, $sql); $dbh = DBI->connect("DBI:mysql:ccc:","ccc","ccc"); $sth = $dbh->prepare("SELECT domainID, domain, created FROM domain ORDER BY domainID ASC"); $sth->execute(); while (($domainID, $domain, $created) = $st