CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
550: Permission denied

 



Scott Harrison
Deleted

Jul 2, 2000, 6:37 PM

Post #1 of 2 (3638 views)
550: Permission denied Can't Post

Hi guys,

I have been downloading many scripts and trying them out lately. Unfortunately I can't always get them installed all the way. My problem is that I used a script to create homepages for my visitors. What I ended up doing is making member directories in the wrong place. Now I can't get rid of them. When I attempt to delete the files I get 550: Permission denied. So I'd really like to get this stuff out, what do I do? Could another script be written that could delete them? Thanks for any help.


------------------
Scott Harrison
DirtSims.com


perlkid
stranger

Jul 2, 2000, 11:06 PM

Post #2 of 2 (3638 views)
Re: 550: Permission denied [In reply to] Can't Post

 
Try This.

#!/usr/bin/perl
unlink </path/to/file/*>;
exit;

You can change the path to the bin with the pages you don't want and it will clear them all out. It won't delete the actual folder but only the contents.

If there mixed in with other files you want to keep use this instead,

#!/usr/bin/perl
unlink "filename.html";
unlink "filename2.html";
exit;

Be carefull with your paths and names because you don't want to delete some files you really need.

perlkid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives