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?
- 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