Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 17:22:44 -0600
From:      Eric F Crist <ecrist@secure-computing.net>
To:        Gary Kline <kline@tao.thought.org>
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, freebsd-www@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: The best scripts ever (trick or treat)
Message-ID:  <7B9C8C55-F972-4AB2-8DFB-9DA8C017D7BE@secure-computing.net>
In-Reply-To: <20051102210916.GA67760@thought.org>
References:  <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> <20051102200757.GA67144@thought.org> <20051102201439.GA37256@flame.pc> <20051102204235.GC67144@thought.org> <20051102204743.GA89885@flame.pc> <20051102210916.GA67760@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Nov 2, 2005, at 3:09 PM, Gary Kline wrote:

> On Wed, Nov 02, 2005 at 10:47:43PM +0200, Giorgos Keramidas wrote:
>> On 2005-11-02 12:42, Gary Kline <kline@tao.thought.org> wrote:
>>> On Wed, Nov 02, 2005 at 10:14:40PM +0200, Giorgos Keramidas wrote:
>>>>>
>>>>> 	"CATEORY: foo
>>>>> 	"FUNCTION: it_does_this
>>>>> 	"OPTIONS: can_do_this_or_that"
>>>>>
>>>>> 	BEGINSCRIPT
>>>>> 	!#/bin/sh
>>>>> 	echo "hello world"
>>>>> 	ENDSCRIPT
>>>>
>>>> What happens when the script itself contains a line that starts
>>>> with one of the special "markup" lines?
>>>>
>>>
>>> 	AFAIK, the only markup lines this would use would be
>>> 	the <TAGS></TAGS>.  A sh script might use the ">" or "<"
>>> 	for redirection, but the conversion script would ignore
>>> 	everything between
>>>
>>> 	BEGINSCRIPT
>>> 	ENDSCRIPT
>>>
>>> 	which would make parsing straightforeward.
>>
>> Unless the shell script itself contains 'ENDSCRIPT' somewhere ;-)
>>
>> This is what I was referring to as "markup".
>
> 	Hmmm!   :-)
>
> 	Okay, then what about
> 	BEGIN_somelonghexstringthatis256byteslong
>
> 	and
>
> 	END_somelonghexstringthatis256byteslong

Dammit!! I was just writing a script that used that exact variable!

-----
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B9C8C55-F972-4AB2-8DFB-9DA8C017D7BE>