LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using lynx to create html page with the file structure of a local directory (https://www.linuxquestions.org/questions/linux-newbie-8/using-lynx-to-create-html-page-with-the-file-structure-of-a-local-directory-837204/)

advent73 10-10-2010 08:36 AM

Using lynx to create html page with the file structure of a local directory
 
Hi, this is my first post here and I am relatively new to Linux. I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.

What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.

Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter. Any guidance will be greatly appreciated.

Thanks,
Josh

Tinkster 10-10-2010 12:56 PM

Hi, welcome to LQ!

I don't think that Lynx is the right tool for the
job; you could use bash-programming, with a
bit of find & awk thrown in, or perl for this kind
of task - perl is probably the slightly better
choice in this case ...



Cheers,
Tink


All times are GMT -5. The time now is 04:26 PM.