Copying files

2004-04-27 Thread Mark Wheeler
Hi, Thanks all for the help on the mail question a few days back. That's fixed. Now I've run into another problem. I'm trying to copy a file on a local network (off a PC) to my Mac. But when the script is called from within cron, it seems that the script doesn't run. The cron looks like this:

Re: Copying files

2004-04-27 Thread Wiggins d Anconia
Hi, Thanks all for the help on the mail question a few days back. That's fixed. Now I've run into another problem. I'm trying to copy a file on a local network (off a PC) to my Mac. But when the script is called from within cron, it seems that the script doesn't run. The cron looks

Re: Image::Magick

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 1:56 AM, Jan Eden wrote: But I'd still like to get Image::Magick working. Will experiment with various path names. From what you posted earlier, it looks like what you'll need to add: -L/usr/local/lib to LIB -I/usr/local/include -I/usr/local/include/freetype2 to INC Don't

Re: Image::Magick

2004-04-27 Thread Sherm Pendley
On Apr 26, 2004, at 3:52 AM, Jan Eden wrote: I did not find something like ltiff or ljpeg Libraries are more of a C thing than a Perl thing, but it's useful to know about for compiling extensions, so here goes. What you see there -ltiff -ljpeg are options that tell the linker to link against

Re: Image::Magick

2004-04-27 Thread Chris Devers
On Tue, 27 Apr 2004, Sherm Pendley wrote: On Apr 27, 2004, at 1:56 AM, Jan Eden wrote: But I'd still like to get Image::Magick working. Will experiment with various path names. From what you posted earlier, it looks like what you'll need to add: -L/usr/local/lib to LIB

Re: Image::Magick

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 2:58 PM, Chris Devers wrote: how many times does the wheel need to be re-invented, ya know? :-) I've always thought that an odd expression. The first wheels were simply logs placed under a sled; when the sled had passed over them they were picked up and carried around to the

Re: Copying files

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 12:59 PM, Wiggins d Anconia wrote: I would suggest File::Copy instead I second this, with one caveat: If you're backing up a file server that's used by pre-X Macs, or you're using Classic apps under X, you should be aware that File::Copy won't preserve resource forks. In

Re: Image::Magick

2004-04-27 Thread Chris Devers
On Tue, 27 Apr 2004, Sherm Pendley wrote: On Apr 27, 2004, at 2:58 PM, Chris Devers wrote: how many times does the wheel need to be re-invented, ya know? :-) I've always thought that an odd expression. Fair enough :-) But still, think about it: do we need to make one of these refinements

Re: Mod_perl woes...

2004-04-27 Thread Benjamin Adair
I just stumbled into this EXACT same problem today while attempting to get mod_perl up and running. MacOSX 10.3.3 Perl v5.8.1-RC3 Apache 1.3.29 mod_perl 1.26 My 'stupid' test script: #!/usr/bin/perl print Content-type: text/plain\n\n; print mod_perl rules!\n; Carl's first example script

Re: Image::Magick

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 3:45 PM, Chris Devers wrote: But still, think about it: do we need to make one of these refinements to the basic design of the wheel every time we want to take a car from one state to another, or *gasp* drive to another country? Of course not. Oh, I agree for the most part.

Re: Copying files

2004-04-27 Thread Ken Williams
On Apr 27, 2004, at 11:59 AM, Wiggins d Anconia wrote: The script is as follows: #!/usr/bin/perl -w use strict; my @files = db1.txt, db2.txt, db3.txt, db4.txt; foreach (@files) { rename /path/to/pc/file/$_, /Users//Documents/$_..bak; You should always check that 'rename' succeeded (as

Re: Image::Magick

2004-04-27 Thread Dan Schroeder
Yes, open-source makes advanced things possible. But does installing Imagemagick and Perlmagick really need to be in the advanced category? Took me (a unix newbie, I admit) an awfully long time to get it working, and I never would have succeeded without access to a personal expert who had

Re: Image::Magick

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 5:18 PM, Dan Schroeder wrote: But does installing Imagemagick and Perlmagick really need to be in the advanced category? Well, the original poster had a detailed set of requirements that Fink cannot easily fulfill - he wanted to use a specific set of libraries that he'd

reinventing wheels (was Re: Image::Magick)

2004-04-27 Thread Joel Rees
On 2004.4.28, at 03:58 AM, Chris Devers wrote: ... Hand-rolling popular software from source is nice and all, but how many times does the wheel need to be re-invented, ya know? :-) sherm: The first wheels were simply logs placed under a sled; ... We probably shouldn't clutter the list with module

Re: Copying files

2004-04-27 Thread Mark Wheeler
Yup. You're right. I missed that one. Here's what I did to simplify the testing of the script. #!/usr/bin/perl -w use strict; use File::Copy; copy(/Users/xx/Documents/db1.txt, /Users/xx/Documents/db1.txt.bak) or warn Can't copy file: $!;

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Mark Wheeler wrote: Yup. You're right. I missed that one. Here's what I did to simplify the testing of the script. copy(/Users/xx/Documents/db1.txt, /Users/xx/Documents/db1.txt.bak) or warn Can't copy file: $!; - I know the cron

Re: Copying files

2004-04-27 Thread Mark Wheeler
Hi Bruce, Good question. Here are the results. The permissions for the /Users/xx/Documents directory is: drwx-- 7 xx xx 238 27 Apr 15:08 Documents The permission for the /Users/xx/Library/Scripts directory is: drwxr-xr-x 3 xx xx 102 27 Apr 14:22 Scripts

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Mark Wheeler wrote: Good question. Here are the results. The permissions for the /Users/xx/Documents directory is: drwx-- 7 xx xx 238 27 Apr 15:08 Documents The permission for the /Users/xx/Library/Scripts directory is: drwxr-xr-x 3 xx xx 102 27

Re: reinventing wheels (was Re: Image::Magick)

2004-04-27 Thread Sherm Pendley
On Apr 27, 2004, at 6:07 PM, Joel Rees wrote: sherm: We probably shouldn't clutter the list with module requests (Apologies to Chris Devers and to the list for cluttering it with noise Sorry, I didn't mean to imply that your request for help with PerlMagick was noise. Far from it - that's what

Re: Copying files

2004-04-27 Thread Mark Wheeler
OK... I changed the permissions. Still no change. The file is not being backed up. How do I check to see if the script is even executing? Is there a log I can look at? I haven't changed anything from the standard install for 10.3. I'm the only person on the machine. Do I need to activate perl

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Mark Wheeler wrote: OK... I changed the permissions. Still no change. The file is not being backed up. One more permission to check, which is whether the original file may be read 'executed' by your script. Should be: -rwxr-xr-x How do I check to see if the script is even

Re: Copying files

2004-04-27 Thread Ken Williams
On Apr 27, 2004, at 5:07 PM, Mark Wheeler wrote: Yup. You're right. I missed that one. Here's what I did to simplify the testing of the script. #!/usr/bin/perl -w use strict; use File::Copy; copy(/Users/xx/Documents/db1.txt,

Re: Copying files

2004-04-27 Thread Ken Williams
On Apr 27, 2004, at 5:46 PM, Bruce Van Allen wrote: On 4/27/04 Mark Wheeler wrote: Good question. Here are the results. The permissions for the /Users/xx/Documents directory is: drwx-- 7 xx xx 238 27 Apr 15:08 Documents The permission for the /Users/xx/Library/Scripts

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Ken Williams wrote: On Apr 27, 2004, at 5:46 PM, Bruce Van Allen wrote: Most likely your script is not running as owner, so you probably want drwxrwxrwx for the Documents directory ( chmod 0777, '/Users/xx/Documents' ). That's a bad idea. I wouldn't want *my* Documents

Re: Image::Magick

2004-04-27 Thread Jan Eden
Sherm Pendley wrote on 27.04.2004: On Apr 27, 2004, at 1:56 AM, Jan Eden wrote: But I'd still like to get Image::Magick working. Will experiment with various path names. From what you posted earlier, it looks like what you'll need to add: -L/usr/local/lib to LIB -I/usr/local/include

Re: Image::Magick

2004-04-27 Thread Jan Eden
Sherm Pendley wrote on 27.04.2004: On Apr 27, 2004, at 3:45 PM, Chris Devers wrote: But still, think about it: do we need to make one of these refinements to the basic design of the wheel every time we want to take a car from one state to another, or *gasp* drive to another country? Of course

Re: Copying files

2004-04-27 Thread Mark Wheeler
OK... I got the foo in my mailbox, so cron is working. So I'll go with the next step of a basic perl script. Mark On Apr 27, 2004, at 8:23 PM, Ken Williams wrote: On Apr 27, 2004, at 5:07 PM, Mark Wheeler wrote: Yup. You're right. I missed that one. Here's what I did to simplify the testing