By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

generate pages

P: n/a
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?
Jan 5 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
re****@newsguy.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.
Jan 5 '08 #2

P: n/a
On 5 Jan, 15:33, rea...@newsguy.com wrote:
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.
Jan 5 '08 #3

P: n/a
On 1/5/2008 7:33 AM, re****@newsguy.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?

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/>.
Jan 5 '08 #4

P: n/a
Scott Bryce <sb****@scottbryce.comwrites:
re****@newsguy.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.
Jan 7 '08 #5

P: n/a
Lars Eighner <us****@larseighner.comwrites:
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.
Jan 7 '08 #6

P: n/a
"David E. Ross" <no****@nowhere.notwrites:
>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
Jan 7 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.