Re: Interacting with other applications

2007-03-23 Thread Andrew Brosnan
On 3/23/07 at 2:56 PM, [EMAIL PROTECTED] (David Cantrell) wrote: On Thu, Mar 22, 2007 at 05:55:18PM -0400, Sherm Pendley wrote: On Mar 22, 2007, at 1:01 PM, Andrew Brosnan wrote: I'd like to run a daily backup script on my laptop, but I'd like it to ask permission first. I'm wondering

Interacting with other applications

2007-03-22 Thread Andrew Brosnan
I'd like to run a daily backup script on my laptop, but I'd like it to ask permission first. I'm wondering what is the best way to do this. I thought I would have the script open Terminal.app and use STDIN/OUT? If so, what is the recommended way to do this? IPC::Open? One of the Mac::X modules?

Solved - Re: Regex and Mac vs UNIX line endings

2006-07-20 Thread Andrew Brosnan
All set with this. Converting the line endings worked fine. Thanks. Andrew On 7/20/06 at 7:25 PM, [EMAIL PROTECTED] (kurtz le pirate) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Andrew Brosnan) wrote: I'm processing a string with embedded newlines. For testing I

Regex and Mac vs UNIX line endings

2006-07-19 Thread Andrew Brosnan
I'm processing a string with embedded newlines. For testing I was storing the text in __DATA__ and slurping it into a string. This works fine. However when I read in a file, I'm having trouble with the line endings. Matching begining/end of logical lines is not working as I expect. Regexes like

Re: Regex and Mac vs UNIX line endings

2006-07-19 Thread Andrew Brosnan
On 7/19/06 at 9:51 PM, [EMAIL PROTECTED] (Robert Hicks) wrote: Andrew Brosnan wrote: I'm processing a string with embedded newlines. For testing I was storing the text in __DATA__ and slurping it into a string. This works fine. However when I read in a file, I'm having trouble

LWP::Simple - Terminal won't but BBEdit will.

2006-07-09 Thread Andrew Brosnan
Hi, I came across something odd editing a script with BBEdit. The BBEdit #! menu has a 'Run' command and a 'Run in Terminal' command. The script below works fine when I use the Run command, but returns HTTP response code 500 when I use Run in Terminal. I tried running it directly from Terminal

Re: LWP::Simple - Terminal won't but BBEdit will.

2006-07-09 Thread Andrew Brosnan
On 7/9/06 at 6:03 PM, [EMAIL PROTECTED] (Sherm Pendley) wrote: On Jul 9, 2006, at 5:03 PM, Andrew Brosnan wrote: my $file = 'Users/andrewbr/Desktop/google.html'; Easy fix - add a / to the beginning of $file to make it a fully- qualified path. Ahh, that was a typo...thanks

Re: Install Apache, mod_perl

2006-04-05 Thread Andrew Brosnan
/httpd.conf. You will likely see many other LoadModule directives in the file, add it there. It also warns that your mod_perl may be located other than at {server root}/modules/mod_perl.so, so you may want to double check that. Regards, Andrew -- Andrew Brosnan - Broscom LLC - 1 207 925-1156 [EMAIL

mkpath

2006-01-13 Thread Andrew Brosnan
I'm using File::Path's mkpath() function in a script run by Apache on Mac OS X 10.3 and Perl 5.8.1. It works fine when only creating a single directory, but as soon as it tries to create more than one directory level, it fails. Below is the relevant code and error. Can anyone see anything wrong,

Re: ImageMagick/PerlMagick on Panther

2004-09-22 Thread Andrew Brosnan
On 9/22/04 at 1:05 PM, [EMAIL PROTECTED] (Mark Wheeler) wrote: This is why I'm looking at ImageMagick. Am I going in the right direction here, or is there something else (Imager?) that will do the same thing with less of an installation procedure? Has anyone used the Darwin Port?

10.3.5 - mod_perl upgrade trouble

2004-09-20 Thread Andrew Brosnan
Hello, Previously I had been running Mac OS X 10.2.X. I had installed an additional version of Perl (v5.8.4) and used it to build mod_perl(v1.29) and Apache (v1.3.31). mod_perl scripts ran fine, until ... Last night I upgraded to Mac OS X 10.3.5. and Apple installed new versions of Perl,

Re: 10.3.5 - mod_perl upgrade trouble

2004-09-20 Thread Andrew Brosnan
On 9/20/04 at 3:31 PM, [EMAIL PROTECTED] (Chris Devers) wrote: On Mon, 20 Sep 2004, Andrew Brosnan wrote: However, even though it appears that mod_perl is loaded, I can't get mod_perl scripts to run. This had been driving me nuts for months, Now I feel better. It's only been driving

Re: Mason and undefined symbols error: resolved

2004-07-16 Thread Andrew Brosnan
On Jul 15, 2004, at 12:36 PM, Andrew Brosnan wrote: I need some help troubleshooting an 'Undefined symbols' error. I'm trying to get Mason/mod_perl/Apache to install and work properly. Currently I am running Mac OS X 10.2.8. ... On 7/15/04 at 1:38 PM, [EMAIL PROTECTED] (Do

Mason and undefined symbols error

2004-07-15 Thread Andrew Brosnan
Hello, I need some help troubleshooting an 'Undefined symbols' error. I'm trying to get Mason/mod_perl/Apache to install and work properly. Currently I am running Mac OS X 10.2.8. I first installed Perl v5.8.4. (I still have the Perl 5.6 installation that comes from Apple.) I installed Apache

Re: Mason and undefined symbols error

2004-07-15 Thread Andrew Brosnan
10.2) Thanks, Andrew On 7/15/04 at 12:36 PM, [EMAIL PROTECTED] (Andrew Brosnan) wrote: Hello, I need some help troubleshooting an 'Undefined symbols' error. I'm trying to get Mason/mod_perl/Apache to install and work properly. Currently I am running Mac OS X 10.2.8. I first installed

Re: Mason and undefined symbols error

2004-07-15 Thread Andrew Brosnan
On 7/15/04 at 2:53 PM, [EMAIL PROTECTED] (Sherm Pendley) wrote: ... But that is not the case here. You're not building an ordinary module - you're building mod_perl. Do Hyun Kim's answer in this case is appropriate - try building your Perl with a dynamic libperl instead of the default

OT: chuckles

2003-09-02 Thread Andrew Brosnan
Sorry...good for a smile though: http://www.ucomics.com/cornered/2003/09/02/

Re: BerkeleyDB make test problem

2003-08-21 Thread Andrew Brosnan
On Thursday, August 21, 2003, at 05:38 AM, Paul Marquess wrote: I've had a mail from someone using my BerkeleyDB module on OSX. When he does the usual make test step it seems to be running the BerkeleyDB.pm file that is installed, rather than the one under blib. I wonder if they

Re: Problems installing Event.pm

2003-02-17 Thread Andrew Brosnan
On 2/17/03 at 10:51 AM, [EMAIL PROTECTED] (Bruce Van Allen) wrote: Has anyone successfully installed Event.pm on darwin's Perl? I have OS X 10.2.4, with Perl 5.6.1 replacing Apple's install of 5.6.0. I need Event for Net::Z3950. Installed on 10.1.5 fine

Re: Cry for DBD::mysql help

2002-11-22 Thread Andrew Brosnan
On 11/22/02 at 9:45 AM, [EMAIL PROTECTED] (Charlie Minow) wrote: Hi, I've tried and tried and can't get DBD::mysql to work on my powerbook. When I try to use it in a perl script i get a bunch of errors that start like this: dyld: perl Undefined symbols: _mysql_affected_rows

Re: What up with the mac

2002-10-10 Thread Andrew Brosnan
I didn't write to scripts below, but they are fun to play with. Obviously some adjustment would be needed to compare across systems. # #!/usr/bin/perl Benchmark_demo1 #Measure CPU usage of a some portion of a program use Benchmark; #

Re: question on ssh and peeve on editors

2002-10-03 Thread Andrew Brosnan
On 10/3/02 at 1:12 PM, [EMAIL PROTECTED] (Puneet Kishor) wrote: Folks, Two parts -- 1. Only tangentially perl related (in that, I want to edit perl scripts) residing on a remote machine connected via ssh. Is there a way to actually mount an ssh connected machine's hd on my ibook so I