Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 5750 invoked from network); 8 May 2006 13:58:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 May 2006 13:58:10 -0000 Received: (qmail 67109 invoked by uid 500); 8 May 2006 13:58:01 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 67064 invoked by uid 500); 8 May 2006 13:58:00 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 67049 invoked by uid 99); 8 May 2006 13:58:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2006 06:58:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.140] (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2006 06:58:00 -0700 Received: from [82.69.78.226] (helo=[192.168.0.2]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1Fd6F0-0005V2-Lf for user@forrest.apache.org; Mon, 08 May 2006 13:57:38 +0000 Message-ID: <445F4E4C.90304@apache.org> Date: Mon, 08 May 2006 14:57:32 +0100 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: is Forrest easilly scriptable ? References: <1147096001.2418.38.camel@sandoval> In-Reply-To: <1147096001.2418.38.camel@sandoval> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Joao Miguel Ferreira wrote: > Hello all at Forrest, > > this might be a crazy idea... is Forrest easiy sriptable ? > > I've used Forrest for 2 or 3 documents I've written (and I love it). > > Know I'm involved in a project that will need to automatically, > periodically, send pdf documents as e-mail attaches to system > administrators. Why not Forrest for the doc generation ? > > Can I easilly embedd forrest inside shell scripts ? Just gessing: 1) I > would generate XML automatically; 2) I would generate png images > automatically; 3) then I would invoque forrest; 4) then I would remove > the pdf file from the 'site' sub-dir and send it by e-mail.... > > Can anyone comment on this ? Is Forrest the tool I'm searching for ? or > are there other tools (bessides Forrest) that are more adequate ? > > Size is not a problem. I'm glad you say "sie is not a problem". Forrest is big and clunky if all you wan tto do is send out the odd mail or two of specific files. There are lots of options for scripting Forrest. It has a CLI, it can be run from ANT and it has an application for automatically building sites via a cron job. Your use cases are too general and varied for us to be able to give clear guidance, but in general, yes, Forrest is scriptable. However... One of the big limitations of Forrest is that it is difficult to generate single files. So if you want a single PDF to be updated, you would have to build the whole site. This is not a problem if your site is small, but if it is large it can be an issue. Forrest is not really designed for one off page generation. Having said that, there are mechnisms for limiting what pages are generated. Ross