[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] STARTER_JOB_HOOK_KEYWORD question



On 09/09/2011 04:02 PM, Andre Charbonneau wrote:
Hi,
I need to have more than one hook to be executed when a job exits (in no
particular order), for all jobs. The document says that you can specify
which hook to run for every job using the STARTER_JOB_HOOK_KEYWORD, as
shown below:

    STARTER_JOB_HOOK_KEYWORD = STARTER
    STARTER_HOOK_JOB_EXIT = /usr/local/bin/myhook


My question is: Is there a way to run more than one hook? Something like:

    STARTER_JOB_HOOK_KEYWORD = STARTER,MYOTHERHOOK
    STARTER_HOOK_JOB_EXIT = /usr/local/bin/myhook
    MYOTHERHOOK_HOOK_JOB_EXIT = /usr/local/bin/myhook2

Thanks!
Andre

You just get one, but in that one you can run whatever you want. It could even condor_config_val for other hooks to run.

Best,


matt