ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
and as www/admin I can. I tried changing the file permissions before deleting it in my perl script, but it didn't work:override rw-r--r-- www/admin for 1image.jpg?
Do I need to run my web accessible perl script as another user? I can usually pull this off, but it's always been with txt documents, not images.$imgfile=">/Library/WebServer/Documents/gcdata/".$id."image.jpg"; $cmd1 = "chown me ".$imgfile.""; $cmd2 = "chmod 777 ".$imgfile.""; $cmd3 = "rm ".$imgfile.""; if (-e $file){ system "$cmd1"; system "$cmd2"; system "$cmd3"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Kill file that I created, and recreate
by b10m (Vicar) on Feb 10, 2004 at 03:17 UTC | |
by ecuguru (Monk) on Feb 10, 2004 at 03:59 UTC | |
|
Re: Kill file that I created, and recreate
by Zaxo (Archbishop) on Feb 10, 2004 at 02:48 UTC | |
|
Re: Kill file that I created, and recreate
by Ao (Friar) on Feb 10, 2004 at 03:13 UTC |