ply-To: [EMAIL PROTECTED]
>To: garrett esperum <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: V2 Sandbox Creation Script
>Date: Thu, 10 Jan 2002 16:29:03 -0800 (PST)
>
>--- garrett esperum <[EMAIL PROTECTED]> wrote:
> > Thanks! That hel
Garrett Esperum wrote:
>
> Hello all,
Hello,
> Below is what I have so far for my script, I can get every piece to work
> correctly on it's own, nut I cannot get these two pieces to work together. I
> think I am messing up the syntax of this script. What Am I doing wrong?? How
> do I loop in th
Okay, I'll confess. I stayed up wy too late last night and my Perl skills
seems inversely
proportional to my energy level. I wasn't paying attention to the fact that you were
doing a
foreach on a scalar, which is typically not ver useful.
Here's the code, as I understand your intent,
--- garrett esperum <[EMAIL PROTECTED]> wrote:
> Thanks! That helped,
> This is what my script looks like now:
>
> #!/usr/local/bin/perl -w
>
> use strict;
> use File::Path;
> use File::Copy;
>
> my $file;
> my $type;
> my $currentLocation;
> my $newLocation;
> my $owner;
> my $permissions;
> o
--- garrett esperum <[EMAIL PROTECTED]> wrote:
> Thanks! That helped,
> This is what my script looks like now:
>
> #!/usr/local/bin/perl -w
>
> use strict;
> use File::Path;
> use File::Copy;
>
> my $file;
> my $type;
> my $currentLocation;
> my $newLocation;
> my $owner;
> my $permissions;
>
html/one/two/three/ www me 0755
What am I doing wrong?
-garrett
>From: Steve Mayer <[EMAIL PROTECTED]>
>To: garrett esperum <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: V2 Sandbox Creation Script
>Date: Thu, 10 Jan 2002 14:49:57 -0800
>
Garrett,
Try changing the following line:
system mkdir $location or die "Couldn't make the target directory: $!\n";
to:
mkpath($location,1,0777) or
die "Couldn't make the target directory: $!\n";
Good luck,
Steve
On Thu, Jan 10, 2002 at 02:38:50PM -0800, garrett esperum w