re: how to access the perl file from palm top

2001-12-28 Thread Grant Babb
CGI::WML available from CPAN ... you should be able to port your code quite easily with it. hope that helps- grant

Re: how to access the perl file from palm top

2001-12-27 Thread A. Farber
Maybe http://www.samag.com/documents/s=1131/sam05040004/

Re: how to access the perl file from palm top

2001-12-27 Thread Brendan W. McAdams
Most Cellphones use WAP/WML format. It's a highly simplified markup language with limited functionality; there may be mod_perl modules out there to handle it. You could try a google search for WML (Wireless Markup Language); it's been a while since i did anything with it and don't have any resou

how to access the perl file from palm top

2001-12-27 Thread SubbaReddy M
Hello Gurus, I have apache with mod-perl env. on Redhat linux 6.2 and mysql as backend. Written perl script that fetch the data from mysql database and generate the dynamic page to view from PC based browser. >>> #!/usr/bin/perl -w use CGI qw(:standard); use DBI; $driver = "mysql

Re: [VERY OT] How to Use Apache as a FTP server

2001-12-20 Thread George Sanderson
I somehow missed the first part of this email thread (from anandr). The Apache::OpenIndex module (when loaded on the Apache server) provides a way to upload and download files using a http browsers. A demo is available at: http://www.xorgate.com/Apache/OpenIndex At 03:55 PM 12/19/2001 +0200, you

How to use LWP::Simple inside a safe compartment?

2001-12-19 Thread Christoph Bergmann
hy I use "wget" instead of "get" directly because I have already a subroutine with the name "get" elsewhere) I tried some other things but they all didn't work. Does anybody know how to use LWP::Simple::get inside a save compartment? Thanks in advance, Best regards,

Re: How to Use Apache as a FTP server

2001-12-19 Thread [EMAIL PROTECTED]
hi, While if i were to take you literally it will not work. HTTP and FTP behave comepletely differently. However you can simulate it .. eg ftp://ftp.myserver.pre As well as browsers tend to do passive ftp .. for downloads .. Hope that helps a little. Regards, [EMAIL PROTECTED] /* Se

Re: [VERY OT] How to Use Apache as a FTP server

2001-12-19 Thread Issac Goldstand
That's not mod-perl. That's not even Apache. Many popular web browsers have browsing features for anonymous FTP. You need an FTP server for that. Apache 2 will include an FTP server (I think), but for now, try wuftpd. Issac anandr wrote: >Hi All, > >I want to use my Apache as a ftp ser

How to Use Apache as a FTP server

2001-12-19 Thread anandr
Hi All, I want to use my Apache as a ftp service also. Can the ring help me. I am running Apache 1.3.22 at port 80. when I give http:///, I get the list of files in my htdocs. Like wise when I give ftp:///, I need a list from my server folders. Have look at this address,for what I am intend

RE: How to check the return status?

2001-12-17 Thread Stathy Touloumis
i V. Alexandrov [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 17, 2001 9:45 AM > To: [EMAIL PROTECTED] > Subject: How to check the return status? > > > Hello everyone, > > I have a question that i can not resolve. The module dynamicaly > loads other modules to ha

How to check the return status?

2001-12-17 Thread Alexei V. Alexandrov
Hello everyone, I have a question that i can not resolve. The module dynamicaly loads other modules to handle specific urls like this: [snip] my $handle = 'My::Module'; eval { (my $h = $handle) =~ s!::!/!ig; require $h . ".pm";

How to use LWP::Simple inside a safe compartment?

2001-12-12 Thread Christoph Bergmann
hy I use "wget" instead of "get" directly because I have already a subroutine with the name "get" elsewhere) I tried some other things but they all didn't work. Does anybody know how to use LWP::Simple::get inside a save compartment? Thanks in advance, Best regards,

Re: how to make mod_perl actually run fast

2001-12-05 Thread Perrin Harkins
> It uses wildcard DNS and some other goodies to extend the > mod_perl-server-via-proxy-from-static-server setup Why not just use name-based virtual hosts for the backend and avoid all the monkeying with DNS? - Perrin

Re: how to make mod_perl actually run fast

2001-12-05 Thread Roger Pettett
I never managed to get ProxyPass & ProxyPassReverse to work properly with farms of machines at the backend. :P R. On Wed, 5 Dec 2001 [EMAIL PROTECTED] wrote: > >My module now adds > > X-Forwarded-For: remote.address# remote address of > client > > X-Host: www.glurp.com # real

Re: how to make mod_perl actually run fast

2001-12-05 Thread lesmikesell
>My module now adds > X-Forwarded-For: remote.address# remote address of client > X-Host: www.glurp.com # real virtualhost address > > The reason I used the X-Host header was to avoid > missing-trailing-slash requests coming back to the client with the wrong > (/etc/hosts alia

Re: how to make mod_perl actually run fast

2001-12-05 Thread Roger Pettett
My configuration had a similar problem - a bunch of virtualhosts (~25 or so) some of which use modperl, running on a handful of 2-node tightly-coupled clusters with the content/scripts sitting on NFS. DNS for the virtualhost addresses points to a frontend cluster. I set up extra aliases for my

how to make mod_perl actually run fast

2001-12-04 Thread Tyler 'Crackerjack' MacDonald
[mod_perl list: i'm not a subscriber jsyk so if you wish to reply to me, reply to me directly and not the list] This past weekend, my webserver suffered a severe failure when i decided to upgrade my code to mod_perl instead of fastCGI. This performance problem resulted in me going to the mod_perl

RE: [OT] Re: How to create a browser popup window

2001-11-23 Thread Domien Bakker
Title: RE: [OT] Re: How to create a browser popup window Hello, Thanks for all the window tips. I have fixed it with out using any javascript. just mention in your html head and give TARGET=_self to the references which should be opened within the parent window. Thanks, Domien

[OT] Re: How to create a browser popup window

2001-11-20 Thread Nick Tonkin
On Tue, 20 Nov 2001, Rob Bloodgood wrote: > > You must include code to deal with the fact that you may have already > > opened a popup window. Something like this: > > That is simply not true. window.open() with a named window ('popupwin', in > your example) ALWAYS reuses that window, on every

RE: [OT] Re: How to create a browser popup window

2001-11-20 Thread Rob Bloodgood
od idea to explicitly call focus() on your child window, because in the situation I've just mentioned, if the child window's url is refreshed, it is NOT automatically brought to the foreground. The original post was wondering how to put mod_perl output in a popup window. The answer is sim

[OT] Re: How to create a browser popup window

2001-11-20 Thread Nick Tonkin
ny code you like, including the other example posted here. Just remember to test whether you already have the window open or not and act appropriately. ~~~~~~~ Nick Tonkin On Tue, 20 Nov 2001, Ben Demonte wrote: > How to create a browser popup windowhow do I unsubscribe from this list. &g

Re: How to create a browser popup window

2001-11-20 Thread David Young
.html > From: "Domien Bakker" <[EMAIL PROTECTED]> > Date: Tue, 20 Nov 2001 15:30:45 +0100 > To: <[EMAIL PROTECTED]> > Subject: How to create a browser popup window > > Hello all, > > Can anybody give me the "golden" tip of creating a pop

Re: How to create a browser popup window

2001-11-20 Thread Ben Demonte
Title: How to create a browser popup window how do I unsubscribe from this list.   - Original Message - From: Domien Bakker To: [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 6:30 AM Subject: How to create a browser popup window Hello all, Can anybody

How to create a browser popup window

2001-11-20 Thread Domien Bakker
Title: How to create a browser popup window Hello all, Can anybody give me the "golden" tip of creating a popup browser window from my mod_perl handler? I want to fill in this popup window with results generated within my handler.  Is there a module available from CPAN

Re: how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread clayton cottingham
here is a list of install procedures ive used for getting these all going http://drfrog.fdns.net/x3d/howto.html

Re: how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread Rafiq Ismail
s I have installed > libxml2-2.4.7-1.i386.rpm > And how to set XPath, after installing this libxml2-2.4.7-i386.rpm ? > > I saw in README file in libxslt-1.0.6 bundle. > i.e., > >>>>>>>>>>>>>>>>>>>>>>>>>&

RE: how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread Matt Sergeant
vember 2001 04:03 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: how to install the XML::LibXSLT along with libxslt? I am very sorry to apache mail list, becuase of posting the not related query. So, i am epxecting help from successfully work one. And Daniel is the author of this, so i am di

Re: how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread Bill Moseley
At 08:03 PM 11/14/01 -0800, SubbaReddy M wrote: Maybe a question for the libxml2 list instead of mod_perl? So, while installing libxslt-1.0.6 i am getting error atlast, that is " checking for libxml libraries >= 2.4.7... ./configure: xml2-config: command not found " Did you make install l

how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread SubbaReddy M
need to install the libxslt-1.0.6   For this I have installed   libxml2-2.4.7-1.i386.rpm And how to set XPath, after installing this libxml2-2.4.7-i386.rpm ?   I  saw in README file in libxslt-1.0.6 bundle. i.e., >>>>>>>>>>>>>>>>>>>>

Re: How to update the httpd env for mod_perl

2001-11-07 Thread Ged Haywood
Hi there, On Wed, 7 Nov 2001, SubbaReddy M wrote: > I installed perl 5.6.1 and mod_perl and Apache-ASP-2.27 on my Linux box. (Redhat 6.2) Did you compile your Apache and mod_perl? > [root@qclinux /root]# perl -v That's "perl -V" not "perl -v" :) > This is perl, v5.6.1 built for i686-linux >

How to update the httpd env for mod_perl

2001-11-07 Thread SubbaReddy M
t;<<<<<<<<<<<<<<   But, when try to check from browser:, it still displaying old version only and old environment. That's i am unable to access the newly installed perl 5.6.1, mod_perl and it's Apache::ASP, Apache::SSI, Apache::DBI moudles.  

Re: multiple rapid refreshes - how to handle them.

2001-10-17 Thread Les Mikesell
EMAIL PROTECTED] - Original Message - From: "Mark Maunder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 17, 2001 5:36 PM Subject: multiple rapid refreshes - how to handle them. > Is there a standard way of dealing with users who are on high

Re: multiple rapid refreshes - how to handle them.

2001-10-17 Thread Perrin Harkins
> Is there a standard way of dealing with users who are on high bandwidth > connections who hit refresh (hold down F5 in IE for example) many times > on a page that generates alot of database activity? Try this: http://www.stonehenge.com/merlyn/LinuxMag/col17.html - Perrin

Re: multiple rapid refreshes - how to handle them.

2001-10-17 Thread Wim Kerkhoff
for a few seconds > generates around 300 requests and grinds our server to a halt. The app > is written as a single mod_perl handler that maintains state with > Apache::Session and cookies. content is generated from a backend mysql > database. That mod_perl book has an example of how to cr

multiple rapid refreshes - how to handle them.

2001-10-17 Thread Mark Maunder
Is there a standard way of dealing with users who are on high bandwidth connections who hit refresh (hold down F5 in IE for example) many times on a page that generates alot of database activity? On a 10 meg connection, holding down F5 in IE for a few seconds generates around 300 requests and gri

Re: how to catch a killed task?

2001-10-10 Thread Stas Bekman
Christoph Bergmann wrote: > Stas Bekman wrote: > >>Christoph Bergmann wrote: >> >> >>>hi... >>> >>>i use BSD::Resource to limit the ressources of the apache tasks. this >>>works fine but now i want to clean up afterwards but i don&

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
Perrin Harkins wrote: > > > Perrin Harkins wrote: > > > > > > I believe the limiting done by BSD::Resource is pretty harsh and may > > > actually be at the kernel level. I don't think you can catch the signal > and > > > deal with it yourself. What you should do is use Apache::SizeLimit to > >

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
Stas Bekman wrote: > > Christoph Bergmann wrote: > > > hi... > > > > i use BSD::Resource to limit the ressources of the apache tasks. this > > works fine but now i want to clean up afterwards but i don't know how to > > catch a kill

Re: how to catch a killed task?

2001-10-09 Thread Perrin Harkins
> Perrin Harkins wrote: > > > > I believe the limiting done by BSD::Resource is pretty harsh and may > > actually be at the kernel level. I don't think you can catch the signal and > > deal with it yourself. What you should do is use Apache::SizeLimit to > > handle your size constraints, and jus

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
Perrin Harkins wrote: > > I believe the limiting done by BSD::Resource is pretty harsh and may > actually be at the kernel level. I don't think you can catch the signal and > deal with it yourself. What you should do is use Apache::SizeLimit to > handle your size constraints, and just use BSD::

Re: how to catch a killed task?

2001-10-07 Thread Perrin Harkins
> it just killed the task at soft limit without calling "cleanup". what is > wrong? I believe the limiting done by BSD::Resource is pretty harsh and may actually be at the kernel level. I don't think you can catch the signal and deal with it yourself. What you should do is use Apache::SizeLimit

Re: how to catch a killed task?

2001-10-07 Thread Stas Bekman
Christoph Bergmann wrote: > hi... > > i use BSD::Resource to limit the ressources of the apache tasks. this > works fine but now i want to clean up afterwards but i don't know how to > catch a killed task... here is what i tried with signals: > > my entries in h

how to catch a killed task?

2001-10-06 Thread Christoph Bergmann
hi... i use BSD::Resource to limit the ressources of the apache tasks. this works fine but now i want to clean up afterwards but i don't know how to catch a killed task... here is what i tried with signals: my entries in httpd.conf: PerlModule Apache::Resource PerlSetEnv PERL_RLIMIT_CP

how to get the contents sent to client

2001-10-01 Thread Vladimir Volovich
Hi, i'd like to write some analysis program using mod_perl which will analyse the contents of pages which are sent to client. the site is dynamic -- it uses SSI and CGI, and i would like to "hook" into the phase when apache sends the pages after all processing (like SSI) is done, and analyse the

RE: How to build apache/mod_perl/mod_ssl

2001-09-14 Thread Stas Bekman
On Fri, 14 Sep 2001, Geoffrey Young wrote: > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Friday, September 14, 2001 2:22 PM > > To: [EMAIL PROTECTED] > > Subject: How to build apache/mod_perl/mod_ssl > &

RE: How to build apache/mod_perl/mod_ssl

2001-09-14 Thread Christopher Fry
OTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 14, 2001 11:22 AM > To: [EMAIL PROTECTED] > Subject: How to build apache/mod_perl/mod_ssl > > > Hi, > > I have the sources of: > > apache 1.3.20 > openssl-0.9.6b > openssl-engine-0.9.6b > mod_ss

RE: How to build apache/mod_perl/mod_ssl

2001-09-14 Thread Geoffrey Young
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 14, 2001 2:22 PM > To: [EMAIL PROTECTED] > Subject: How to build apache/mod_perl/mod_ssl > > > Hi, > > I have the sources of: > > apache 1.3.

Re: How to build apache/mod_perl/mod_ssl

2001-09-14 Thread Blair Zajac
nt on each other and it seems impossible to build > apache and enable mod_perl and mod_ssl, or I have no idea how to do it. > > I'm using Red Hat Linux 7.1 on an Intel x86 (Celeron). > > Thanks heaps. > James

How to build apache/mod_perl/mod_ssl

2001-09-14 Thread gnudev
mod_ssl, or I have no idea how to do it. I'm using Red Hat Linux 7.1 on an Intel x86 (Celeron). Thanks heaps. James

How to handle the main parent exit

2001-08-28 Thread Olivier Poitrey
Hello, I would like to know if it's possible to handle the Apache's main parent exit event. I want call a method to clean some died datas (like shared memory segments). best regards, -- ___ O l i v i e rP o i

RE: How to handle the main parent exit

2001-08-28 Thread Geoffrey Young
> -Original Message- > From: Olivier Poitrey [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 28, 2001 8:08 AM > To: [EMAIL PROTECTED] > Subject: How to handle the main parent exit > > > Hello, > > I would like to know if it's possible to handle

How to handle the main parent exit

2001-08-28 Thread Olivier Poitrey
Hello, I would like to know if it's possible to handle the Apache's main parent exit event. I want call a method to clean some died datas (like shared memory segments). best regards, -- ___ O l i v i e rP o i

Re: How to I secure /cgi-bin?

2001-06-27 Thread Tim Tompkins
Use Location for paths respective to the server root. ... - Original Message - From: "Ron Savage" <[EMAIL PROTECTED]> To: "mod_perl" <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 9:23 PM Subject: Q: How to I secure /cgi-bin? > Test en

Q: How to I secure /cgi-bin?

2001-06-27 Thread Ron Savage
Test env: Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a I just tried this to stop myself running any scripts from /cgi-bin, but it does not stop me. Yeah, yeah, I restart the server after every patch to httpd.conf. Options Indexes FollowSymLinks MultiViews Ord

Re: How To Turn On .pl files on Apache?

2001-06-14 Thread Ged Haywood
Hi there, On Thu, 14 Jun 2001, Purcell, Scott wrote: > Well I installed the Apache Web Server on my local NT box here and it runs. Did you install mod_perl too? 73, Ged.

How To Turn On .pl files on Apache?

2001-06-14 Thread Purcell, Scott
Hello, Rookie here. Well I installed the Apache Web Server on my local NT box here and it runs. I have gone through the FAQ's but cannot find out how to turn on .pl files that are in the cgi-bin directory much less making other cgi-bin directories. Could some kind sole please assist me

Re: i use linux+apache. how to create a cgi-bin directory for VirtualHost?

2001-06-10 Thread Dave Baker
--LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > by the way,i need create many virtual host,so i must do dynamic > creating like above. There are many ways of specifying virtual hosts. A couple of alternati

i use linux+apache. how to create a cgi-bin directory for Virtual Host?

2001-06-09 Thread ydok
my system is build on linux+apache now  i'm create virtual hosts.i change the config file (/opt/apache/conf/httpd.conf)like this: # get the server name from the Host: headerUseCanonicalName Off# this log format can be split per-virtual-host based on the first fieldLogFormat "%V %h

How to change an SSIs Last-Modified

2001-06-04 Thread Joachim Zobel
Hi. I am using SSI a lot for 3 reasons: 1. Easy way to modularize static and generated HTML 2. XBitHack full + touch provides an easy way to have pages play the If-Modified-Since game. (If our catalog database is updated, the fame SSIs get a touch) 3. Performance Now I am implementing a way

How to change all the url of a particular website.. (append session id)

2001-05-16 Thread ktgoh
perl module.. But subsequently, the value of the sessionid id is lost, as it proceed to get other request type(eg image). I intend to intercept the first request, and append the sessionid to the other requests before it is lost. Do your have any idea how to do? Thanks kheeTEck - Original

Fw: How to get cookie from a mod_perl proxy

2001-05-16 Thread ktgoh
> Hi, I am writing a perl_mod script for apache that will act as a proxy to > intercept all requests that comes through my proxy. I want to set a cookie in > the client's browser (to store a session ID) and retrieve it each time the > user make a request to other URL (assuming he has set my pro

Re: [OT] How to write this perl sub w/o variables?

2001-04-29 Thread Stas Bekman
On Sun, 29 Apr 2001, Philip Mak wrote: > Is it possible to rewrite this perl subroutine without using variables? > > sub XMLEncode { > my ($line) = @_; > $line =~ s/&/&/g; > $line =~ s/ $line =~ s/>/>/g; > return $line; > } > > I was thinking something like > > sub XMLEncode {

Re: [OT] How to write this perl sub w/o variables?

2001-04-29 Thread Honza Pazdziora
On Sun, Apr 29, 2001 at 04:34:40AM -0400, Philip Mak wrote: > > I was thinking something like > > sub XMLEncode { local $_ = shift; > s/&/&/g; > s/ s/>/>/g; > return $_; > } -- Honza Pazdziora |

[OT] How to write this perl sub w/o variables?

2001-04-29 Thread Philip Mak
Is it possible to rewrite this perl subroutine without using variables? sub XMLEncode { my ($line) = @_; $line =~ s/&/&/g; $line =~ s//>/g; return $line; } I was thinking something like sub XMLEncode { s/&/&/g; s//>/g; return $_; } but I can't get it to work like th

Re: How to tell if scripts are mod_perl ?

2001-04-20 Thread Sean C. Brady
On 20 Apr 2001, Wayne Pascoe wrote: > Hi there, > > I'm trying to roll out some software by one of our 3rd party > developers. I'm trying to find out if the scripts will actually be run > through mod_perl and not as cgi's. > > The only config changes that they have specified to my Apache confi

Re: How to tell if scripts are mod_perl ?

2001-04-20 Thread G.W. Haywood
Hi there, On 20 Apr 2001, Wayne Pascoe wrote: > I'm trying to find out if the scripts will actually be run > through mod_perl and not as cgi's. http://perl.apache.org/guide 73, Ged.

Re: How to tell if scripts are mod_perl ?

2001-04-20 Thread Chris Reinhardt
You can check the MOD_PERL envirement variable. Something like: if ($ENV{MOD_PERL}) { # We're under mod_perl } else { # strait perl here } -- Chris Reinhardt [EMAIL PROTECTED] Webmaster Dynamic DNS Network Services http://www.dyndns.org

How to tell if scripts are mod_perl ?

2001-04-20 Thread Wayne Pascoe
Hi there, I'm trying to roll out some software by one of our 3rd party developers. I'm trying to find out if the scripts will actually be run through mod_perl and not as cgi's. The only config changes that they have specified to my Apache config is as follows : Alias /cgi-bin/ /real/path/to/p

Re: How to make Apache (use Apache::ASP?) send out thecontent-length of documents generated on the fly

2001-04-06 Thread Joshua Chamas
Ying Li wrote: > > Hi, > > Is there any way to tell Apache server to send the Content-Length header base on the >dynamically-generated query result? Any help will be > appreciated. > With Apache::ASP this will happen automatically for you if you have BufferingOn set, since Apache::ASP knows t

How to make Apache (use Apache::ASP?) send out the content-length of documents generated on the fly

2001-04-06 Thread Ying Li
Hi, Is there any way to tell Apache server to send the Content-Length header base on the dynamically-generated query result? Any help will be appreciated. Ying Li

Re: how to prevent ie ( et al ) from resubmitting POST info

2001-03-29 Thread tom
Aha! I knew I should have stopped taxing my brain about this one long ago! The answer is simple: when your head hurts, ask the list. Thanks very much. On Thu, Mar 29, 2001 at 10:17:24AM -0800, Jeffrey W. Baker wrote: > > > On Thu, 29 Mar 2001 [EMAIL PROTECTED] wrote: > > > Anyone have any tri

Re: how to prevent ie ( et al ) from resubmitting POST info

2001-03-29 Thread Jeffrey W. Baker
On Thu, 29 Mar 2001 [EMAIL PROTECTED] wrote: > Anyone have any tricks up their sleeve to prevent the following: > IE, on opening a new browser windows, or on revisiting through history a > page which submitted some post data, will re-post that data, > which causes me problems, as POST triggers

how to prevent ie ( et al ) from resubmitting POST info

2001-03-29 Thread tom
Anyone have any tricks up their sleeve to prevent the following: IE, on opening a new browser windows, or on revisiting through history a page which submitted some post data, will re-post that data, which causes me problems, as POST triggers my music player window, with a random mix from the pos

Re: how to get underlying request_rec * ??

2001-03-22 Thread Matt Sergeant
On Wed, 21 Mar 2001, Gordon Lo wrote: > Hey, > I am writing a Perl interface to an existing C API. I > would like to do something like this in a Perl > handler: > > # Handler > sub handler { > my $r = shift; > . > . > my $rv = my_func($r, $some_other_args); > . > . > } > > where the

how to get underlying request_rec * ??

2001-03-21 Thread Gordon Lo
Hey, I am writing a Perl interface to an existing C API. I would like to do something like this in a Perl handler: # Handler sub handler { my $r = shift; . . my $rv = my_func($r, $some_other_args); . . } where the corresponding C function looks like: int my_func(request_rec *r, char

Re: how to print $ sigh in the output

2001-03-15 Thread Sean C. Brady
scripts or files > containing "$" but I failed because "$" is used as an operator. Can > any one please let me know how to define $ as a simple character. > Supposed, I asked to print $PATH in my output. Thank you. > > > Jamal > [EMAIL PROTECTED] > > >

how to print $ sigh in the output

2001-03-15 Thread Jamal Uddin
Hello,   I am writing a perl script which will produce some scripts or files containing "$" but I failed because "$" is used as an operator. Can any one please let me know how to define $ as a simple character. Supposed, I asked to print $PATH in my output. Thank y

Re: How to unsubscribe.

2001-02-28 Thread Stas Bekman
> How to unsubscribe. please The information is right before your yes: look at any of the posts' headers: ... Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: <mailto:[EMAIL PROTECTED]> list-unsubscribe: <mailto:[EMAIL PROTECTED]> list-

How to unsubscribe.

2001-02-28 Thread John Michael
How to unsubscribe. please Thanks John Michael  

Re: How to recognize server shutdown?

2001-01-11 Thread Perrin Harkins
On Thu, 11 Jan 2001, Doug MacEachern wrote: > of course, there is such a "trick" > >[EMAIL PROTECTED]">http://forum.swarthmore.edu/epigone/modperl/thandflunjimp/[EMAIL PROTECTED] Documentation patch attached. - Perrin 1039a1040,1046 > Cleanup functions registered in the parent process (before

Re: How to recognize server shutdown?

2001-01-11 Thread Ernest Lergon
Doug MacEachern wrote: > >> I meant "is there a way to run a cleanup handler in the parent after it's >> work is done?", but I don't see one. Dave says the END block trick worked >> for him, so maybe it only fails under certain circumstances. >> > of course, there is such a "trick" > >[EMAIL PRO

Re: How to recognize server shutdown?

2001-01-11 Thread Doug MacEachern
On Wed, 10 Jan 2001, Stas Bekman wrote: > All we need is to add a $Apache::Server::Quitting or alike, in addition to > the existing $Apache::Server::Starting and $Apache::Server::ReStarting, > should be an easy patch in XS. nooo, as i've mentioned before Starting,ReStarting variables were mista

Re: How to recognize server shutdown?

2001-01-11 Thread Dave Rolsky
On Thu, 11 Jan 2001, Perrin Harkins wrote: > I meant "is there a way to run a cleanup handler in the parent after it's > work is done?", but I don't see one. Dave says the END block trick worked > for him, so maybe it only fails under certain circumstances. Actually, I should have pointed out t

Re: How to recognize server shutdown?

2001-01-11 Thread Doug MacEachern
On Thu, 11 Jan 2001, Perrin Harkins wrote: > > > but it's a bummer that the parent > > > doesn't run END blocks. Will it run cleanup handlers? > > > > Cleanup handlers are run by child processes. What it has to do with > > parent? Or do I miss something? cleanup handlers are run when a pool is

Re: How to recognize server shutdown?

2001-01-11 Thread Perrin Harkins
> > but it's a bummer that the parent > > doesn't run END blocks. Will it run cleanup handlers? > > Cleanup handlers are run by child processes. What it has to do with > parent? Or do I miss something? I meant "is there a way to run a cleanup handler in the parent after it's work is done?", but

Re: How to recognize server shutdown?

2001-01-11 Thread G.W. Haywood
Hi all, On 10 Jan 2001, Randal L. Schwartz wrote: > Here's an idea... in the startup code, create a pipe and fork. > block the kid on a read. ni-night, kid. Nice, Randall! 73, Ged.

Re: How to recognize server shutdown?

2001-01-11 Thread Stas Bekman
On Wed, 10 Jan 2001, Perrin Harkins wrote: > On Thu, 11 Jan 2001, Stas Bekman wrote: > > the parent process doesn't run the END block. > > Randal's solution is probably better, But it's not a very nice solution if you want to release something on CPAN that relies on this hack. A support from mod

Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky
On Wed, 10 Jan 2001, Perrin Harkins wrote: > Randal's solution is probably better, but it's a bummer that the parent > doesn't run END blocks. Will it run cleanup handlers? I'm pretty sure the parent runs END blocks. I just didn't want to have the cleanup code run during child shutdown. What

Re: How to recognize server shutdown?

2001-01-10 Thread Perrin Harkins
On Thu, 11 Jan 2001, Stas Bekman wrote: > the parent process doesn't run the END block. Randal's solution is probably better, but it's a bummer that the parent doesn't run END blocks. Will it run cleanup handlers? - Perrin

Re: How to recognize server shutdown?

2001-01-10 Thread Randal L. Schwartz
> "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes: Stas> On Wed, 10 Jan 2001, Perrin Harkins wrote: >> On Wed, 10 Jan 2001, Dave Rolsky wrote: >> > Is there any way to distinguish between a child being shutdown (say >> > maxrequests has been exceeded) versus all of Apache going down (kill >>

Re: How to recognize server shutdown?

2001-01-10 Thread Stas Bekman
On Wed, 10 Jan 2001, Perrin Harkins wrote: > On Wed, 10 Jan 2001, Dave Rolsky wrote: > > Is there any way to distinguish between a child being shutdown (say > > maxrequests has been exceeded) versus all of Apache going down (kill > > signal sent to the original process or something). > > Register

Re: How to recognize server shutdown?

2001-01-10 Thread Perrin Harkins
On Wed, 10 Jan 2001, Dave Rolsky wrote: > Is there any way to distinguish between a child being shutdown (say > maxrequests has been exceeded) versus all of Apache going down (kill > signal sent to the original process or something). Register an END block in your startup.pl, and have it check it'

Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky
On Wed, 10 Jan 2001, Stas Bekman wrote: > All we need is to add a $Apache::Server::Quitting or alike, in addition to > the existing $Apache::Server::Starting and $Apache::Server::ReStarting, > should be an easy patch in XS. I'm not much of an C coder (much less XS) but maybe I'll poke around a b

Re: How to recognize server shutdown?

2001-01-10 Thread Stas Bekman
On Wed, 10 Jan 2001, Dave Rolsky wrote: > On Wed, 10 Jan 2001, G.W. Haywood wrote: > > > Don't you get a message in error_log to the effect that a signal has > > been received? > > Sure, but I don't think that would help me do what I want. > > Let me illustrate: > > 1. server is started > 2. co

Re: How to recognize server shutdown?

2001-01-10 Thread G.W. Haywood
Hi there, On Wed, 10 Jan 2001, Dave Rolsky wrote: > On Wed, 10 Jan 2001, G.W. Haywood wrote: > > > Don't you get a message in error_log to the effect that a signal has > > been received? > > Sure, but I don't think that would help me do what I want. What I meant was you could perhaps find the

Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky
On Wed, 10 Jan 2001, Danny Rathjens wrote: > Perhaps you could send a USR1 prior to your TERM signal and have your > END blocks perform your shutdown tasks if they see the USR1 signal. > But then you have the problem of new children being started due to the > USR1 not to mention it would preclude

Re: How to recognize server shutdown?

2001-01-10 Thread Robin Berjon
At 18:55 10/01/2001 +, Danny Rathjens wrote: >Perhaps you could send a USR1 prior to your TERM signal and have your >END blocks perform your shutdown tasks if they see the USR1 signal. >But then you have the problem of new children being started due to the >USR1 >not to mention it would preclu

Re: How to recognize server shutdown?

2001-01-10 Thread Danny Rathjens
Dave Rolsky wrote: > > On Wed, 10 Jan 2001, G.W. Haywood wrote: > > > Don't you get a message in error_log to the effect that a signal has > > been received? > > Sure, but I don't think that would help me do what I want. > > Let me illustrate: > > 1. server is started > 2. config is read, m

Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky
On Wed, 10 Jan 2001, G.W. Haywood wrote: > Don't you get a message in error_log to the effect that a signal has > been received? Sure, but I don't think that would help me do what I want. Let me illustrate: 1. server is started 2. config is read, modules are loaded, BEGIN blocks are run in t

Re: How to recognize server shutdown?

2001-01-10 Thread G.W. Haywood
Hi Dave, On Wed, 10 Jan 2001, Dave Rolsky wrote: > Is there any way to distinguish between a child being shutdown (say > maxrequests has been exceeded) versus all of Apache going down (kill > signal sent to the original process or something). Don't you get a message in error_log to the effect t

<    1   2   3   4   5   >