Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 11:59:32AM -0500, Nathan Vidican wrote: > Could do something simple with a Perl script as such: > > #!/usr/bin/perl > > use strict; > my @filenames = `ls`; > > print "Content-type: text/html\n\n"; > > print "See the list below, click an item to open it: \n\n"; > foreach

Re: creating htmls from a directory tree?

2010-02-10 Thread Nathan Vidican
Could do something simple with a Perl script as such: #!/usr/bin/perl use strict; my @filenames = `ls`; print "Content-type: text/html\n\n"; print "See the list below, click an item to open it: \n\n"; foreach my $F (@files) { print " $F\n"; } print "\n"; # EOF You could, of course, get muc

Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 12:35:12PM -0300, Daniel Molina Wegener wrote: > On Wednesday 10 February 2010, > Anton Shterenlikht wrote: > > > On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: > > > In response to Anton Shterenlikht : > > > > I'd like to upload a directory structure to a web

Re: creating htmls from a directory tree?

2010-02-10 Thread Robert Huff
Anton Shterenlikht writes: > > > I'd like to upload a directory structure to a web > > > server. I'd like to create in each subdirectory > > > an index.html with a simple list of files in this > > > directory for a simple browsing. > > > > > > This sounds like a perl or shell script, but >

Re: creating htmls from a directory tree?

2010-02-10 Thread Daniel Molina Wegener
On Wednesday 10 February 2010, Anton Shterenlikht wrote: > On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: > > In response to Anton Shterenlikht : > > > I'd like to upload a directory structure to a web > > > server. I'd like to create in each subdirectory > > > an index.html with a s

Re: creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
On Wed, Feb 10, 2010 at 10:05:36AM -0500, Bill Moran wrote: > In response to Anton Shterenlikht : > > > I'd like to upload a directory structure to a web > > server. I'd like to create in each subdirectory > > an index.html with a simple list of files in this > > directory for a simple browsing. >

Re: creating htmls from a directory tree?

2010-02-10 Thread Bill Moran
In response to Anton Shterenlikht : > I'd like to upload a directory structure to a web > server. I'd like to create in each subdirectory > an index.html with a simple list of files in this > directory for a simple browsing. > > This sounds like a perl or shell script, but > I was wondering if th

creating htmls from a directory tree?

2010-02-10 Thread Anton Shterenlikht
I'd like to upload a directory structure to a web server. I'd like to create in each subdirectory an index.html with a simple list of files in this directory for a simple browsing. This sounds like a perl or shell script, but I was wondering if there is someting like this already available from po