From owner-freebsd-www@FreeBSD.ORG Wed Nov 2 23:23:19 2005 Return-Path: X-Original-To: freebsd-www@freebsd.org Delivered-To: freebsd-www@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7812316A41F; Wed, 2 Nov 2005 23:23:19 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from grog.secure-computing.net (grog.secure-computing.net [216.243.161.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 711C743D48; Wed, 2 Nov 2005 23:23:18 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.102] (snipe.secure-computing.net [216.243.161.77]) (authenticated bits=0) by grog.secure-computing.net (8.13.1/8.13.1) with ESMTP id jA2NNKFN078277 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Wed, 2 Nov 2005 17:23:23 -0600 (CST) (envelope-from ecrist@secure-computing.net) DomainKey-Signature: a=rsa-sha1; s=grog; d=secure-computing.net; c=nofws; q=dns; h=in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to:x-mailer:x-spam-status:x-spam-checker-version; b=NN0obFHltY02jWpklCCxIOK7eukF5zrzy0hOUT7OEkO6i+oDqsozQzc4BwCHRQxNF DG3JqMpOqA4rRxdD3JbKA== 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> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7B9C8C55-F972-4AB2-8DFB-9DA8C017D7BE@secure-computing.net> Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Wed, 2 Nov 2005 17:22:44 -0600 To: Gary Kline X-Mailer: Apple Mail (2.746.2) X-Spam-Status: No, score=-4.4 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on grog.secure-computing.net Cc: Giorgos Keramidas , freebsd-www@freebsd.org, freebsd-questions@freebsd.org Subject: Re: The best scripts ever (trick or treat) X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 23:23:19 -0000 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 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 . 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