Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: directory listing on http/ftp sever, non-interactive method?< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 19 2005,15:57 QUOTE

Looking for a way in DSL to get a file listing of an arbitrary directory on an http or ftp server, without user interaction.  The directory might not contain an index file, so it would need to be something similar to the ls command on local/network drives.

I've tried using 'wget -S <URL>', which works for some systems but not for DSL.  ftp has a 'ls' command, but i don't think it can be used non-interactively.  Lynx has a -dump option, but apparently this was not carried over to Links.

So i'm out of ideas.  Anyone know another way?
Thanks.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: May 19 2005,16:45 QUOTE

Many ftp clients have a "batch mode" where you can execute a series of commands in a way that is similar to a shell script.

It may be possible to do a "ls" from inside ftp and dump the output to a file.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 19 2005,21:51 QUOTE

yes, but that requires user interaction, unless the ls can be passed as an ftp parameter.  I don't think it can.
This is something which will be run from a script as part of a larger process, and it needs to be done by something available in a standard DSL system....preferably something that does not have a user interface.
If there is nothing in DSL that will do this, then i just wasted the last two days =o)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: May 19 2005,22:23 QUOTE

Shouldn't it be possible to do with this IO redirection. i.e something like

Edit: Just been playing around with this and my previous suggestion didn't quite work. Try this

ftp -n<<EOF
open my.ftp.server
user username password
ls
exit
EOF
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: May 19 2005,22:48 QUOTE

mikshaw -

the problem is fixed. You just need to have gnu-utils.dsl installed

Chris
Back to top
Profile PM MSN YIM 
10 replies since May 19 2005,15:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: directory listing on http/ftp sever

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code