On 05/11/10 04:27 PM, Keith Mitchell wrote:
On 05/11/10 03:53 PM, Alok Aggarwal wrote:
Hi Darren,
I'm looking into converting DC over to the engine
prototype that you guys worked on. And, I've run
into an interesting problem -
A number of the DC checkpoints are implemented as
ksh scripts. That brings up the question of a) Can
the engine register shell scripts as checkpoints?
and, b) Is there a way these scripts can talk to
the DOC (which is a python object)?
(b) is needed because these scripts need certain
values out of the DOC in order to perform their
function.
I had initially planned on wrapping these shell scripts in python
program that interact with the DOC, extract the needed values out of
it and invoke the shell script with those values as arguments. However,
that can become quite cumbersome for scripts that
look up more than a handful value and/or deal with
variable number of arguments. So, I'm looking for
an alternate approach.
Since the DOC can register multiple things to the same "name" (the
items get added as a list), could you simply add the series of
arguments as "some_checkpoint_argv" in order by DC, then have the
checkpoint pull those out, and execute the shell by passing those
arguments? I believe the eventual desire is that the finalizers are
all implemented in Python, but for a prototype, this seems like it
would be sufficient. Or is there another interaction component for
some finalizers that I'm glossing over?
For a prototype, yes, this is fine. I didn't know that this discussion
was for prototyping. In the long run I think we need to move these to
python.
I think we can 'wrap' the finalizers in a checkpoint interface and have
scripts run as the implementation of that checkpoint for the prototyping.
sarah
****
- Keith
Thanks,
Alok
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss