Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
CGI Workaround: Nuking a folder tree
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- CGI Workaround: Nuking a folder tree
CGI Workaround: Nuking a folder tree
06-09-2010 8:25 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Trying to clean up my cgi space I've found the results of an attempt to compile a perl XS module about 6 years ago. Unfortunately the folder tree has hidden content that ftp won't show. Any ideas on how I can remove it?
Oh BTW plan B is to back-up the stuff I want to keep and then disable and reenable the service to get a "clean slate".
Oh BTW plan B is to back-up the stuff I want to keep and then disable and reenable the service to get a "clean slate".
Message 1 of 5
(1,256 Views)
4 REPLIES 4
Re: CGI Workaround: Nuking a folder tree
07-09-2010 2:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Assuming you want to delete a complete sub-directory, you could create a bash script with header information that executes 'rm -r thatsubdirectory'. Transfer this to ccgi as type somename.cgi in the directory containing 'thatsubdirectory'; make the file executable and run it in your browser.
David
Message 2 of 5
(358 Views)
Re: CGI Workaround: Nuking a folder tree
07-09-2010 10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Yes, that did it, thanks.
To be sure I wasn't shooting in the dark I looked up how to make a bash script dump a HTTP header, and tried "ls" first to make sure I was in the right place.
Feels like I'm trying to fix a clock with an axe but my setup looks sane now, most of the cruft from old experiments has gone.
Now I just need to figure how to run an install script non-interactively.
To be sure I wasn't shooting in the dark I looked up how to make a bash script dump a HTTP header, and tried "ls" first to make sure I was in the right place.
Feels like I'm trying to fix a clock with an axe but my setup looks sane now, most of the cruft from old experiments has gone.
Now I just need to figure how to run an install script non-interactively.
Message 3 of 5
(358 Views)
Re: CGI Workaround: Nuking a folder tree
12-09-2010 1:13 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: oliverb Now I just need to figure how to run an install script non-interactively.
What type of install script is it? Presumably won't run interactively in a browser?
David
Message 4 of 5
(358 Views)
Re: CGI Workaround: Nuking a folder tree
12-09-2010 10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Its been a little while since I tried, so I''ve forgotten a lot of this stuff. I think there was a configuration script that asked a series of questions about your system. Quite a few tools seem to ask questions only if they hit something unexpected, and some will detect a non-interactive session and end with an appropriate report instead of waiting for input.
Mainly I'm concerned with Perl extensions that require "XS" sections. If I recall correctly I need to run a "makemaker" file followed by the actual "make install" job. Both should be fine with just command line parameters, though I have to remember the override to make it install "non-root". Its been about two years and I've forgotten how I did it before. Also plusnet's setup includes CPAN.PM which meant that once I creates a ".cpan" folder and a credible config file it would download and install an extension automatically, even if it had "c" code that needed to be built.
Next on my list is learning how to do "sessions". Currently both cgi:session and apache::session read like double-dutch to me.
Mainly I'm concerned with Perl extensions that require "XS" sections. If I recall correctly I need to run a "makemaker" file followed by the actual "make install" job. Both should be fine with just command line parameters, though I have to remember the override to make it install "non-root". Its been about two years and I've forgotten how I did it before. Also plusnet's setup includes CPAN.PM which meant that once I creates a ".cpan" folder and a credible config file it would download and install an extension automatically, even if it had "c" code that needed to be built.
Next on my list is learning how to do "sessions". Currently both cgi:session and apache::session read like double-dutch to me.
Message 5 of 5
(358 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- CGI Workaround: Nuking a folder tree