Sendmail or not?

2001-04-08 Thread Per Einar
There is still one subject about subprocesses under mod_perl which is unclear to me: should I avoid pipes ot other programs or not? What I have understood is that I should avoid forking subprocesses. Now, here is my case: I want to send an e-mail to somebody. Should I open a pipe to sendmail

ANNOUNCE: Apache::Filter 1.018

2001-04-08 Thread Ken Williams
The URL http://www.mathforum.com/~ken/modules/archive/Apache-Filter-1.018.tar.gz has entered CPAN as file: $CPAN/authors/id/K/KW/KWILLIAMS/Apache-Filter-1.018.tar.gz size: 24403 bytes md5: ac3bb8ab1bda2e247d35a1bb5ab33fe7 Changes since 1.017: Some fixes for the 'perl

Re: Sendmail or not?

2001-04-08 Thread G.W. Haywood
Hi there, On Sun, 8 Apr 2001, Per Einar wrote: What I have understood is that I should avoid forking subprocesses. The reason is (loosely speaking) performance. If you haven't any worries about that, go ahead and fork. If it were my system I'd probably just write the mail pieces to files

Re: Sendmail or not?

2001-04-08 Thread Per Einar
- Original Message - From: "G.W. Haywood" [EMAIL PROTECTED] To: "Per Einar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, April 08, 2001 10:27 AM Subject: Re: Sendmail or not? Hi there, On Sun, 8 Apr 2001, Per Einar wrote: What I have understood is that I should avoid

Re: Sendmail or not?

2001-04-08 Thread Sean Chittenden
if you | to sendmail, then you still fork. Mail::Sendmail, I bet dime to dollar, forks and execs a process. The only way to avoid forking is to open a socket and send the message via SMTP (or QMQP if you want to pimp your system out with qmail). Unless you're on AIX or solaris and

Re: Sendmail or not?

2001-04-08 Thread Per Einar
- Original Message - From: "Sean Chittenden" [EMAIL PROTECTED] To: "Per Einar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, April 08, 2001 11:42 AM Subject: Re: Sendmail or not? if you | to sendmail, then you still fork. Mail::Sendmail, I bet dime to dollar, forks and execs

Re: Sendmail or not?

2001-04-08 Thread Mithun Bhattacharya
Am I correct in assuming that you are writing to a file based on user inputs in real time ?? Doesn't that imply you have to go around and implement some sort of file locking or queuing procedure in the handler itself ?? Personally I would rather take the overhead of firing off the MDA and let the

Re: Sendmail or not?

2001-04-08 Thread Per Einar
- Original Message - From: "Mithun Bhattacharya" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, April 08, 2001 11:56 AM Subject: Re: Sendmail or not? Am I correct in assuming that you are writing to a file based on user inputs in real time ?? Doesn't that imply you have to go

Re: Sendmail or not?

2001-04-08 Thread Mithun Bhattacharya
You might want to actually try it out and see what kind of delays are involved in firing off the MDA. Under peak loads where the bottle neck would too many MDA's running at one time (most of the MDA code I assume would be shared though) and under low loads when the bottle neck would be of

Re: Sendmail or not?

2001-04-08 Thread Sean Chittenden
No, Mail::Sendmail sends through SMTP. That's why I talked about it. My bad, next time I'll check out the readme. So, you're saying that I should just fork anyway? If you have an SMTP server that's available for relaying from your host, I'd go for Mail::Sendmail because it

Redirect with anchors.

2001-04-08 Thread Antti Linno
Hallo. I need to know how to use redirect so, that the anchors have effect. Tried to use apache redirect use Apache; use Apache::Constants qw(REDIRECT); $req_rec-header_out("Location" = "intranet.html?action=show#anchor_name"); $req_rec-status(REDIRECT); The html has such tag, but redirect

Re: Sendmail or not?

2001-04-08 Thread barries
On Sun, Apr 08, 2001 at 12:07:01PM +0200, Per Einar wrote: What I was suggesting was that I could do the SMTP connection myself. But you're right, that might involve queuing problems. If you do this, make sure that the SMTP connection is to your local MTA, since 'net delays could mean a

deploying tips running 2 apache server

2001-04-08 Thread rene mendoza
i ve been reading the mod perl guide and ive learned that i dont want to use apache child processes to serve static html or images, so i want to implement a lightweight (only mod_dav and cgi enabled apache server, lots of child processes) and a heavy mod perl apache server 5 or 10 apache

modperl 2.0 build... MM.pm

2001-04-08 Thread Rudy
I built Apache 2 and mod_perl for the first time today. To get it to work, I had to edit: blib/lib/ModPerl/MM.pm and add: use Apache::Build; for the 'make install' to work. Now... it is built, and I am ready to try out stuff like Apache::Echo that I learned about at the ApacheCon. Rudy

Re: Redirect with anchors.

2001-04-08 Thread Elizabeth Mattijsen
At 02:56 PM 4/8/01 +0200, Antti Linno wrote: $req_rec-header_out("Location" = "intranet.html?action=show#anchor_name"); I think you should provide the _complete_ URL, including the http://server part. Some browser do not handle incomplete URL's like this in a redirect correctly. Please

Re: Sendmail or not?

2001-04-08 Thread Per Einar
- Original Message - From: "barries" [EMAIL PROTECTED] To: "Per Einar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, April 08, 2001 4:24 PM Subject: Re: Sendmail or not? On Sun, Apr 08, 2001 at 12:07:01PM +0200, Per Einar wrote: What I was suggesting was that I could do

Re: Sendmail or not?

2001-04-08 Thread Tom Mornini
- Original Message - From: "Sean Chittenden" [EMAIL PROTECTED] To: "Per Einar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, April 08, 2001 11:42 AM Subject: Re: Sendmail or not? if you | to sendmail, then you still fork. Mail::Sendmail, I bet dime to dollar, forks and

Re: Redirect with anchors.

2001-04-08 Thread Gerd Kortemeyer
1) First suggestion: Try $req_rec-header_out("Location" = "intranet.html#anchor_name?action=show"); Seems like that is the order that at least Netscape puts GET-parms and anchors in. 2) If the above does not work, try $req_rec-header_out("Location" =

Re: Sendmail or not?

2001-04-08 Thread Ask Bjoern Hansen
On Sun, 8 Apr 2001, Tom Mornini wrote: I don't understand why anyone would do anything else than just forking to qmail-inject. At least on Linux and FreeBSD that goes reasonably fast (you're not sending hundreds and hundreds of mails per minute, are you?), is really simple and the mail will be

Re: Sendmail or not?

2001-04-08 Thread Tom Mornini
On Sunday, April 8, 2001, at 04:16 PM, Ask Bjoern Hansen wrote: On Sun, 8 Apr 2001, Tom Mornini wrote: I don't understand why anyone would do anything else than just forking to qmail-inject. At least on Linux and FreeBSD that goes reasonably fast (you're not sending hundreds and hundreds

Re: deploying tips running 2 apache server

2001-04-08 Thread James G Smith
"rene mendoza" [EMAIL PROTECTED] wrote: This is a multi-part message in MIME format. --=_NextPart_000_0044_01C0BF6F.A24D64B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i ve been reading the mod perl guide and ive learned that i dont

optimizing mySQL connections

2001-04-08 Thread Steven Wren
Hey I have been trying to optimize my mod-perl scripts, by following some of the instructions at http://perl.apache.org/guide/performance.html. I have added my mod-perl modules to my startup.pl file for Apache - along with usual stuff and CGI, Apache::DBI and DBI-install_driver("mysql"); When

Re: Redirect with anchors.

2001-04-08 Thread Andrew Ho
Hello, AL$req_rec-header_out("Location" = "intranet.html?action=show#anchor_name"); EMI think you should provide the _complete_ URL, including the EMhttp://server part. Some browser do not handle incomplete URL's like EMthis in a redirect correctly. Please someone correct me if I'm wrong

Re: ANNOUNCE: Apache::Filter 1.017

2001-04-08 Thread Ken Williams
[EMAIL PROTECTED] (JR Mayberry) wrote: Is it required to, for instance, if you had a 4 chain handler as follows: ReadCache-Handler-WriteCache-Apache::Compress for the WriteCache handler to do: $r-filter_input() and $r-print() while $fh even if it doesnt need to? If I don't do that I seem to