Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-17-2004, 05:18 PM   #1
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
creating a directory file..

need to be able to take a selected directory on my ftp and have it output every file into a .txt list format

ie

a.jpg
b.jpg
c.jpg


and so forth..
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:19 PM   #2
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
so what is it you are looking for or were you just posting to let us know what you were doing
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:22 PM   #3
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
need a program or if anyone knows any fast ways to have all the files listed in a directory output into a txt file
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:29 PM   #4
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
anything like this exist or am i giong crazy thinking there was something lol
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:31 PM   #5
zzgundamnzz
Confirmed User
 
zzgundamnzz's Avatar
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 6,102
Why don't you download them first and get a Mass File Renamer?
__________________


zzgundamnzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:31 PM   #6
ZoiNk
Confirmed User
 
Join Date: Feb 2002
Location: Canada
Posts: 2,370
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk
__________________
"People can have the Model T in any color - so long as it's black." - Henry Ford
ZoiNk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:32 PM   #7
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally posted by zzgundamnzz
Why don't you download them first and get a Mass File Renamer?
I believe she wants a listing of the contents of a directory, not to rename files.

That's a Unix command.. where are our Unix geeks? Surely they are somewhere.

I'm having flashbacks to grep and whatnot, but can't remember the syntax.
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:33 PM   #8
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk
Et voila!

I'm sure you could put it in a nice little script/batch pgm, non?
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:33 PM   #9
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
Quote:
Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk
thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:33 PM   #10
Helix
Confirmed User
 
Helix's Avatar
 
Join Date: Feb 2002
Location: Michigan
Posts: 5,998

Quote:
Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk
Helix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:36 PM   #11
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
anyone care to tell me what prefix i put beside "dir" in dos.. just did dir /? and cant see anything where a command would be to write to a file
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:38 PM   #12
beergood
Confirmed User
 
Join Date: Jun 2003
Location: United States
Posts: 2,918
prog:
----

#!/usr/bin/perl

$path = @ARGV[0];

system("ls -al $path > output.txt");

--

execution

./program.pl /path/you/want/to/list/

should work.
beergood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:39 PM   #13
beergood
Confirmed User
 
Join Date: Jun 2003
Location: United States
Posts: 2,918
Quote:
Originally posted by NaughtyJenn
thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx
Your isp will probably give you shell access if you email them and ask for it.
beergood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:39 PM   #14
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
Quote:
Originally posted by beergood
prog:
----

#!/usr/bin/perl

$path = @ARGV[0];

system("ls -al $path > output.txt");

--

execution

./program.pl /path/you/want/to/list/

should work.
dont have shell access though.. no ssh on the server..
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:40 PM   #15
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
Quote:
Originally posted by beergood
Your isp will probably give you shell access if you email them and ask for it.
not my isp its a ftp account i need to get all the filenames from for a dmca notice..
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:40 PM   #16
beergood
Confirmed User
 
Join Date: Jun 2003
Location: United States
Posts: 2,918
Quote:
Originally posted by NaughtyJenn
dont have shell access though.. no ssh on the server..
Yeah I caught that late. I can't live without a shell
beergood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:42 PM   #17
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
Quote:
Originally posted by beergood
Yeah I caught that late. I can't live without a shell
yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:43 PM   #18
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
n/m got it dir > textfilename.txt

thnx for the help though

Last edited by NaughtyJenn; 05-17-2004 at 05:44 PM..
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:44 PM   #19
beergood
Confirmed User
 
Join Date: Jun 2003
Location: United States
Posts: 2,918
Quote:
Originally posted by NaughtyJenn
yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol
I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.
beergood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:45 PM   #20
beergood
Confirmed User
 
Join Date: Jun 2003
Location: United States
Posts: 2,918
Quote:
Originally posted by NaughtyJenn
n/m got it dir > textfilename.txt

thnx for the help though
good deal. remember that for the once in a blue moon I have to do something on my windows machine
beergood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-17-2004, 05:46 PM   #21
NaughtyJenn
Confirmed User
 
Join Date: Apr 2003
Location: Ontario Canada
Posts: 7,355
Quote:
Originally posted by beergood
I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.
yeah just took what i knew from shell and applied it to dos format wicked thanks alot everyone though.. time to go file a report
NaughtyJenn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.