cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <pfl...@ucc.ie>
Subject Re: Running a shell script from Cocoon
Date Tue, 13 Dec 2005 11:24:49 GMT
On Mon, 2005-12-12 at 11:37, Jorg Heymans wrote:
> Peter Flynn wrote:
> > On Sun, 2005-12-11 at 11:03, Jorg Heymans wrote:
> >> i'm sure you could use Runtime.exec() just about anyware you like to 
> >> call your shellscript. If you need the output of the shell script then 
> >> i'ld put this call in a generator for example.
> > 
> > Could you give an example of the syntax for doing this?
> > 
> 
> 
> (untested, and evilness of runtime.exec ignored )
> 
> 
>    Process p = Runtime.getRuntime().exec("cat myfile.xml");
>    SAXParserFactory factory = SAXParserFactory.newInstance();
>    factory.newSAXParser().parse(p.getInputStream(), contenthandler);

Sorry, what I meant was how do I get my sitemap.xmap to call this?

///Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message