HighDots Forums  

generate pages

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss generate pages in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
reader@newsguy.com
 
Posts: n/a

Default generate pages - 01-05-2008 , 09:33 AM






Tools that generate a webpage from common commands like the numerous
unix commands or dos command line must be around but where should I
look?

I'm guessing someone has created a tool that will quickly generate a
web page from the unix `ls' command. Where the user could step into a
directory and say `ls | sometool' and `sometool' would generate a nice
index page with listed elements leading to the various items.

Probably lot of other more sophisticated things.

Can someone point me where I should be looking?

Reply With Quote
  #2  
Old   
Scott Bryce
 
Posts: n/a

Default Re: generate pages - 01-05-2008 , 10:10 AM






reader (AT) newsguy (DOT) com wrote:
Quote:
Tools that generate a webpage from common commands like the numerous
unix commands or dos command line must be around but where should I
look?
You should be able to google for a Perl (or PHP?) script that takes
input, runs it as a unix command and returns the output. I have seen
them. However, such a script would be a huge security risk. What is it
that you really want to accomplish? There has to be a better way to d
what you want to do.


Reply With Quote
  #3  
Old   
Andy Dingley
 
Posts: n/a

Default Re: generate pages - 01-05-2008 , 12:08 PM



On 5 Jan, 15:33, rea... (AT) newsguy (DOT) com wrote:

Quote:
I'm guessing someone has created a tool that will quickly generate a
web page from the unix `ls' command.
It's embedded in Apache, and most convenient place to kep it too (it
re-generates on demand more easily that way). It's also customisable,
if you read the docs.

Otherwise it's a couple of lines of Python / Perl. Hardly worth the
effort of making a "tool" that did any more. You'd spend more effort
understanding its templating language than you would writing a file-
lister.


Reply With Quote
  #4  
Old   
David E. Ross
 
Posts: n/a

Default Re: generate pages - 01-05-2008 , 12:16 PM



On 1/5/2008 7:33 AM, reader (AT) newsguy (DOT) com wrote:
Quote:
Tools that generate a webpage from common commands like the numerous
unix commands or dos command line must be around but where should I
look?

I'm guessing someone has created a tool that will quickly generate a
web page from the unix `ls' command. Where the user could step into a
directory and say `ls | sometool' and `sometool' would generate a nice
index page with listed elements leading to the various items.

Probably lot of other more sophisticated things.

Can someone point me where I should be looking?
Go to my <http://www.rossde.com/get_index.html>. Is this what you want?

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.


Reply With Quote
  #5  
Old   
reader@newsguy.com
 
Posts: n/a

Default Re: generate pages - 01-06-2008 , 07:27 PM



Scott Bryce <sbryce (AT) scottbryce (DOT) com> writes:

Quote:
reader (AT) newsguy (DOT) com wrote:
Tools that generate a webpage from common commands like the numerous
unix commands or dos command line must be around but where should I
look?

You should be able to google for a Perl (or PHP?) script that takes
input, runs it as a unix command and returns the output. I have seen
them. However, such a script would be a huge security risk. What is it
that you really want to accomplish? There has to be a better way to d
what you want to do.
Its a home lan never exposed to the internet so security is at least
quite a lot lower. I run no outward servers.

Sorry I went to sleep at the switch after posting the quesion and I
see several people have taken time to reply. I do appreciate that.

I can script enough to make something myself... I just stepped into a
directory while sorting out my lan visible pages and thought it would
be a nifty time saver to be able to just say `ls' into something and the
rest would be created.

In this case all the directories have an index.html behind them
already so just getting the directories into a list and addressed is
really all I had in mind... a few words about whats behind there with
the lead one being clicker for gravy ....

I guess I hoped I would be steered toward some nifty tools that would
be more elegant and usefull than my own scripting. I've managed
something now and sort of glad I did but my usage will be very light
after this go-around.


Reply With Quote
  #6  
Old   
reader@newsguy.com
 
Posts: n/a

Default Re: generate pages - 01-06-2008 , 07:29 PM



Andy Dingley <dingbat (AT) codesmiths (DOT) com> writes:

Quote:
It's embedded in Apache, and most convenient place to kep it too (it
re-generates on demand more easily that way). It's also customisable,
if you read the docs.
This sounds interesting... for more than my current little project.
Can you give a search string that might get me started. Apache
documentation is quite plentiful.


Reply With Quote
  #7  
Old   
reader@newsguy.com
 
Posts: n/a

Default Re: generate pages - 01-06-2008 , 07:31 PM



Lars Eighner <usenet (AT) larseighner (DOT) com> writes:

Quote:
lynx -source ./

will do it for the current directory.
That a nifty trick. I hadn't thought to do that. It at least
provides an outline to put together a little nicer look.

Thanks for the other tips too.


Reply With Quote
  #8  
Old   
reader@newsguy.com
 
Posts: n/a

Default Re: generate pages - 01-06-2008 , 07:36 PM



"David E. Ross" <nobody (AT) nowhere (DOT) not> writes:

Quote:
Can someone point me where I should be looking?

Go to my <http://www.rossde.com/get_index.html>. Is this what you want?
That is nice... I was thinking of listing out a few directories that
contain index.html files already so they would be a web address.

I've got it working now... Thanks


Reply With Quote
  #9  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: generate pages - 01-06-2008 , 07:36 PM



On Mon, 07 Jan 2008 02:29:38 +0100, <reader (AT) newsguy (DOT) com> wrote:

Quote:
Andy Dingley <dingbat (AT) codesmiths (DOT) com> writes:

It's embedded in Apache, and most convenient place to kep it too (it
re-generates on demand more easily that way). It's also customisable,
if you read the docs.

This sounds interesting... for more than my current little project.
Can you give a search string that might get me started. Apache
documentation is quite plentiful.
I think this is what he meant:
http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
--
Rik Wasmus


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.