GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Directory listing script? (https://gfy.com/showthread.php?t=103598)

snowball179 01-30-2003 10:29 AM

Directory listing script?
 
I need a script that will scan on a webserver for all the sub-directories on a given directory, and will write itMs path in a *.txt file.

Does anyone knows any?

snowball179 01-30-2003 11:25 AM

anyone knows any?

FuqALot 01-30-2003 12:28 PM

Here you go.

#!/usr/bin/perl
@dir = (`du`);
open (list,">list.txt");
foreach (@dir) { print list; }
close(list);

put in a file and drop it in your starting directory
launch with: perl file, through ssh or whatever :-P.

snowball179 01-30-2003 02:05 PM

I need to put this perl file in a *.pl or *.chgi file, in the category I want it to list....with a *.txt file that I chmod to 777, right?

The problem is that I cannot put perl files outside the cgi-bin directory... :(

FuqALot 01-30-2003 02:43 PM

If you run this through ssh or telnet then it doesn't matter wether you name it .pl .cgi. or whatever, you should just put it in a file and then put the file in a starting directory, and make sure the script can create a file in that starting directory, and then type: 'perl file.pl', without the quotes, list.txt will then be created with the directories and stuff.

snowball179 01-30-2003 03:11 PM

can I load it with IE?
I cannot connect to that server with ssh right now, and my tech is not here.


All times are GMT -7. The time now is 08:14 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123