Other Help Topics :: directory listing on http/ftp sever
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.
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.
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)
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
mikshaw -
the problem is fixed. You just need to have gnu-utils.dsl installed
Chris
Next Page...
original here.