Jim Douglas wrote:
From: Jann Forrer <[EMAIL PROTECTED]>
Reply-To: user@lenya.apache.org
To: user@lenya.apache.org
Subject: Re: Sharing publications
Date: Wed, 14 Jun 2006 16:39:00 +0200

Jim Douglas wrote:
From: Jann Forrer <[EMAIL PROTECTED]>
Reply-To: user@lenya.apache.org
To: user@lenya.apache.org
Subject: Re: Sharing publications
Date: Wed, 14 Jun 2006 15:46:52 +0200

Brad Hannah wrote:
Hello All,
[ ... ]




Is it possible to modify Lenya so that when a page is 'Published', Lenya can kick off a batch job to copy the page to a different webapp directory?

That should be possible if you did not use a security manger which prohibit the execution of "external" scripts.

You can also try to modify the publish task:

org.apache.lenya.defaultpub.cms.task.Publish.java

if you use lenya-1.2.

Jann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Is the security manger you're referring to withing Lenya or on my Linux Server? How would I tell Lenya to kick off an external script?


No, the security manager is not within lenya and in a standard installation there is no security manager. However you can attach a security manger to every java process. I did no use it with lenya but with other applications.

As far as i know you can not tell lenya to kick off an external script without changing the source code. An external command can be executed from within a java class as follows:

Runtime.getRuntime().exec("/bin/df -h -P");

Jann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to