Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $file(@toInstall){ print "Copying $file to $input{'installDir'}/..."; system("cp -Rf ./source/$file $input{'installDir'}/"); if(!(-e "$input{'installDir'}/$file")){ die "FAILED! Unable to complete file copy! DNE: $input{'insta +llDir'}/$file\n"; } print "done. Attempting to set permissions: "; print(chmod(0777,"$input{'installDir'}/$file")); print "\nFinished installing $file!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Permissions
by bikeNomad (Priest) on Jul 22, 2001 at 22:52 UTC | |
by merlyn (Sage) on Jul 22, 2001 at 23:02 UTC | |
by Anonymous Monk on Jul 23, 2001 at 00:08 UTC | |
by Anonymous Monk on Jul 23, 2001 at 00:32 UTC |