RE: File Handle Issues in Mod_Perl 2.0

2007-05-22 Thread Justin Luster
s opened it still reads the first line. When I move into Mod_Perl two this test case fails. The 2nd time the file is opened it does not start reading at the top of the file but starts reading the 2nd line etc. Thanks, Justin -Original Message- From: Foo JH [mailto:[EMAIL PROTECTED] Sen

RE: File Handle Issues in Mod_Perl 2.0

2007-05-21 Thread Justin Luster
I'm not closing the file on purpose to try and simulate an error condition. My main question is why would it work differently from mod_perl 1.0 to 2.0? Thanks, Justin -Original Message- From: Foo JH [mailto:[EMAIL PROTECTED] Sent: Sunday, May 20, 2007 7:15 PM To: Justin Lust

File Handle Issues in Mod_Perl 2.0

2007-05-18 Thread Justin Luster
Hi, A while back I posted an issue that I was having with mod_perl 2.0 regarding file handles. Today I found an interesting clue to the problem. In my test script below I'm opening the same file twice in a row on purpose without closing it. I'm trying to replicate a possible error condition w

RE: File Handle problems - mod_perl 2.0

2007-04-26 Thread Justin Luster
rking just fine under Mod_Perl 1, any idea why things might be different in Mod_Perl 2? Thanks, Justin -Original Message- From: Philippe M. Chiasson [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 7:19 PM To: Justin Luster Cc: modperl@perl.apache.org Subject: Re: File

File Handle problems - mod_perl 2.0

2007-04-25 Thread Justin Luster
Hi, Recently I've noticed intermittent problems in the behavior of my code when running under Mod_Perl 2.0. This particular code has been out there for years with no problems. Recently I've seen a few problems and I'm wondering if it has anything to do with Mod_Perl 2.0, it has been running fin

RE: Lock Files - File is permanently locked

2007-04-17 Thread Justin Luster
. Thanks for your help, Justin -Original Message- From: Robert Landrum [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 3:16 PM To: Justin Luster Cc: 'Dondi M. Stroma'; modperl@perl.apache.org Subject: Re: Lock Files - File is permanently locked Justin Luster wrote: &g

RE: Lock Files - File is permanently locked

2007-04-13 Thread Justin Luster
perl.plover.com/yak/flock/samples/slide001.html I learned about locking a lock file and not using LOCK_UN; Thanks, Justin -Original Message- From: Robert Landrum [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 3:16 PM To: Justin Luster Cc: 'Dondi M. Stroma'; [EMAIL PROTEC

RE: Lock Files - File is permanently locked

2007-04-13 Thread Justin Luster
th Software."; exit(); } NoFlockLock($LockFileHandle); } return($LockFileHandle); } -Original Message- From: Dondi M. Stroma [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 1:27 PM To: Justin Luster Subj

RE: Lock Files - File is permanently locked

2007-04-13 Thread Justin Luster
al Message- From: Robert Landrum [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 1:07 PM To: Justin Luster Cc: [EMAIL PROTECTED] Subject: Re: Lock Files - File is permanently locked Justin Luster wrote: > Does anyone know what might be happening? We are only using > Apache::Reg

Lock Files - File is permanently locked

2007-04-13 Thread Justin Luster
Hi, I've read through some of the documentation on perl.apache.org about file locking and mod_perl. I believe that I'm following the advice there but I'm still having problems. I have individual data files that processes write to. I've decided to follow Dominus's advice (http://perl.plover.co

RE: Do I need Apache2::RequestUtil::request( )?

2005-09-16 Thread Justin Luster
Thank you. That is what I was hoping to hear. Thanks, Justin -Original Message- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 12:06 AM To: Justin Luster Cc: 'mod_perl List' Subject: Re: Do I need Apache2::RequestUtil::request( )? -BEGIN

RE: Do I need Apache2::RequestUtil::request( )?

2005-09-15 Thread Justin Luster
September 15, 2005 12:29 AM To: Justin Luster Cc: 'mod_perl List' Subject: Re: Do I need Apache2::RequestUtil::request( )? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Justin, I try to answer you questions step by step: 1. Why does print "Content-type: text/html\r\n\r\n&quo

RE: *nix distro compatibility (was Re: survey)

2005-09-14 Thread Justin Luster
I use Rackspace for my Unix hosting and support. They install Red Hat Enterprise Linux 3 and 4 that both have beta versions of Mod_Perl installed (ModPerl 1.99_16). Are these not recommended for use on a production server? -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]

Do I need Apache2::RequestUtil::request( )?

2005-09-14 Thread Justin Luster
Hi,   I'm still struggling with trying to understand how Mod_Perl 2 works.  All I want to do is to have a regular Perl script run under Mod_Perl just to speed it up.   In the past, in Mod_Perl 1 I’ve used this:   sub PrintHeader { if ($ENV{'PERL_SEND_HEADER'}) {    

RE: Clear Registry

2005-08-17 Thread Justin Luster
pache::Reload doesn't always work when it picks up the change. I end up getting something I needed undefined in another module or something odd like that, and end up with a graceful restart On Aug 17, 2005, at 4:36 PM, Philip M. Gollucci wrote: > Justin Luster wrote: >> No I wa

RE: Clear Registry

2005-08-17 Thread Justin Luster
ache. To get it to realize the update I usually have to reset Apache. I'm hoping for an easier way especially since sometimes I don't have the right to reset the server. Thanks, Justin -Original Message- From: Philippe M. Chiasson [mailto:[EMAIL PROTECTED] Sent: Wednesday, Aug

RE: Clear Registry

2005-08-17 Thread Justin Luster
I tried this and I get: Can't locate object method: "cache_table_common". Thanks, Justin -Original Message- From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 11:05 AM To: Justin Luster Cc: modperl@perl.apache.org Subject: Re: Clear R

Clear Registry

2005-08-17 Thread Justin Luster
Is there a way in Perl code to clear out the cached code in the registry?

RE: Mod_Perl 2.0 Header question

2005-08-16 Thread Justin Luster
Perrin responded to my question below. His response works with what I'm trying to do. Let me know if you think this is a bad idea. On Tue, 2005-08-16 at 09:20 -0700, Justin Luster wrote: > The way it relates is that in the previous code I was doing this: > > my $r = A

Mod_Perl 2.0 Header question

2005-08-16 Thread Justin Luster
Hi, I was hoping to get a bit of help on how to send the proper HTTP headers using Mod_Perl.  We create Perl scripts and then ship them out to our clients for them to run on their servers.  The script should work on regular CGI and Mod_Perl if they have it.  Things have worked fine so far. 

RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
This clears things up. Thanks for your help. Justin -Original Message- From: Malcolm J Harwood [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 9:22 AM To: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? On Friday 5 November 2004 11:50 am, Justin Luster

RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
package goes into a common package name and will be shared by both scripts? Thanks Perrin. -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 9:03 AM To: Justin Luster Cc: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? Hi

RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
nt: Friday, November 05, 2004 7:09 AM To: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? On Thursday 4 November 2004 09:53 pm, Justin Luster wrote: > Problem #1: > I forgot to initialize a global variable! Bummer. In my code I declare > global variables like this:

Global Variables - What is in Memory?

2004-11-04 Thread Justin Luster
I have been working with Mod_Perl for a few years now and have been fairly successful.  I thought that I had a fair understanding of how things worked until today.  I’m using Mod_Perl version 1.0 and I’m just using the Apache::Registry to speed up regular Perl scripts.   Problem #1: