Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 12:07:57 -0800
From:      Gary Kline <kline@tao.thought.org>
To:        Ceri Davies <ceri@submonkey.net>, Gary Kline <kline@tao.thought.org>, Eric F Crist <ecrist@secure-computing.net>, Giorgos Keramidas <keramida@ceid.upatras.gr>, freebsd-questions@freebsd.org, freebsd-www@freebsd.org
Subject:   Re: The best scripts ever (trick or treat)
Message-ID:  <20051102200757.GA67144@thought.org>
In-Reply-To: <20051102093907.GT29387@submonkey.net>
References:  <20051031212138.4456283C0D@ws1-1.us4.outblaze.com> <200510312218.13261.freebsd01@dgmm.net> <20051101011146.GA14135@thought.org> <20051101013050.GA10120@flame.pc> <20051101055104.GA15533@thought.org> <20051101121414.GB1051@flame.pc> <20051101185922.GB67660@thought.org> <2011CB42-5C96-4315-AD73-A17B39589CBF@secure-computing.net> <20051101222051.GA24702@thought.org> <20051102093907.GT29387@submonkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 02, 2005 at 09:39:07AM +0000, Ceri Davies wrote:
> On Tue, Nov 01, 2005 at 02:20:51PM -0800, Gary Kline wrote:
> 
> > 	Let's say we request people submit only their sh script
> > 	(to start).   What would the format need to be so that 
> > 	a script could parse email and auto-HTML the script?'
> 
>  #!/bin/sh --
>  portinstall squirrelmail
> 
> Did I win a biscuit? :)
> 
> Ceri


	Would some  gold stars do? :)

	evolution take ASCII and iso.8859-15 text and turns it into
	HTML too (I think; don't *quote me*).  I have a C prog that 
	I've been using privingly for 11 years that does this and 
	more, but what what I'm thinkg of is a script that would
	take a posted script and using the KEYWORDS of, say:

	"CATEORY: foo
	"FUNCTION: it_does_this
	"OPTIONS: can_do_this_or_that"

	BEGINSCRIPT
	!#/bin/sh
	echo "hello world"
	ENDSCRIPT

	and generate am HTML file like:

	<HTML>
	<BODY>
	<! this belongs in category "foo" -->

	<CENTER> Function</CENTER>
	This script does: "it does this"

	<P>

	<CENTER> Options</CENTER>
	This script "can do this or that" using flags "-a" "-b" "-c"

	<P>
	<PRE>

	!#/bin/sh
	echo "hello world"

	</PRE>
	<P>
	</BODY>
	</HTML>

	In most things I agree with the KISS philosophy:
	"Keep it simple, Sir".

	This is my off-the-top-of-my-head idea; I'm sure most of you
	guys are better at shell and-or HTML hacking and have better
	ideas.

	gary

-- 
   Gary Kline     kline@thought.org   www.thought.org     Public service Unix




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051102200757.GA67144>