Re: File Writing and CGI

2003-11-21 Thread gene
On Nov 20, 2003, at 11:41 PM, Gohaku wrote: When I tried use CGI::Carp qw(fatalsToBrowser) I saw the following: Internal Server Error I also ran the script from a browser as Root and I still got the same message. Make sure that the script is executable by the user that apache runs as.

Re: making Perl scripts run

2003-08-28 Thread gene
On Wednesday, August 27, 2003, at 04:56 PM, Charlie Root wrote: mrsparkle ellem ~/code $ phonetic.pl bash: phonetic.pl: command not found mrsparkle ellem ~/code $ sudo chmod +x phonetic.pl Password: mrsparkle ellem ~/code $ phonetic.pl bash: phonetic.pl: command not found mrsparkle ellem ~/code

Re: Restart Apache

2002-11-26 Thread gene
On Tuesday, November 26, 2002, at 11:55 AM, Jeremy Schwartz wrote: I am trying to rotate my Apache logs using Cron and the following shell script: # /bin/sh mv /var/log/httpd/access_log /users/admin/logs/ apachectl restart This script is set to 755 and is being executed by the root crontab.

Re: unix or mac-style text files?

2002-11-19 Thread gene
An alternative is to read the entire file in (undef $/) and then split it: My suggestion is to put some code like this in your script: local $/ = get_line_ending($fh); sub get_line_ending { my $fh = shift; my $char; while (read $fh, $char, 1) { if ($char eq \n) { seek $fh, 0, 0;

Re: Adding path to @INC for use with web server

2002-10-10 Thread gene
From: Adam Witney [EMAIL PROTECTED] Date: Thu, 10 Oct 2002 11:09:38 +0100 To: MacOS X perl [EMAIL PROTECTED] Subject: Adding path to @INC for use with web server Hi, Searching the archives I have been able to find out how to get Perl to search other paths for modules when invoked from

Slow file upload in 10.2

2002-09-19 Thread gene
I sent out this email a while ago and got no replies, so I'm trying one more time: After updating to Mac OS 10.2, I've noticed that my perl file uploads (using HTTP::Request::Common) have slowed down by a lot. Using tcpdump, I see that there is a long delay before the first packet is sent.

Slow file upload in 10.2

2002-09-06 Thread gene
After updating to Mac OS 10.2, I've noticed that my perl file uploads (using HTTP::Request::Common) have slowed down by a lot. Using tcpdump, I see that there is a long delay before the first packet is sent. Playing around with file sizes, I found a very strong file-size dependence: File