cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yves Vindevogel" <yves.vindevo...@implements.be>
Subject RE: Cocoon and interaction with the Shell
Date Tue, 18 Nov 2003 13:15:18 GMT
I was answering a mail from Upayavira.  Saying this would be nice to have.
It's not about re-inventing the wheel.  It's about including shell commands
in Cocoon.
Commands like "delete this file", but maybe also stuff like "stop deamon",
"copy file", ...



No, there isn't, but I think it would be extremely useful to have
something. Ideally something that XMLizes a unix pipe (but also works on
Windows).

Thoughts?

Regards, Upayavira

-----Original Message-----
From: Simon Mieth [mailto:simon.mieth@t-online.de]
Sent: dinsdag 18 november 2003 13:07
To: users@cocoon.apache.org
Subject: Re: Cocoon and interaction with the Shell


On Tue, 18 Nov 2003 12:10:15 +0100
"Yves Vindevogel" <yves.vindevogel@implements.be> wrote:

> I agree that it something very useful.
>
> I think, but I'm not an export, that we need something like this:
> An XSP, with parameter "target-platform" for Linux / Windows choice.
> The XSP should be able to do this, eg.
>
> <xsp-shell:execute-command>rm -f <xsp-request:get-parameter
> name="file"</xsp-shell:execute>
> (platform dependant but flexible)
>
> OR
>
> <xsp-shell:delete-file><xsp-request:get parameter
> name="file"><xsp-shell:delete-file>
> (this would be platform independant, but limited to a number of methods)
>

Hi,

could File file = new File(name);
file.delete(); //platform independend

from java.io.File not do this job, or i'm misunderstandig you?

Regards,
Simon

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



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


Mime
View raw message