Page 1 of 1

Running ctmorder from a FW rules file.

Posted: 27 Jun 2013 11:02
by jstarkw
I am trying to order a job after a file watcher using a rules file. I can get this to work only if I do not use -ingrouporderid , in which case it orders the job in a new group. I want it to order in the same group the FW rules is running. It appears I am unable to use auto adit variables in a rules file.

This is the rule.

ON_FILEWATCH /media_lib/bmc_scripts/test/jimtest.dat CREATE
THEN
DO_CMD ctmorder -SCHEDTAB JIM_D_TEST1 -JOBNAME CTMORDER_TEST -ODATE ODAT -FORCE Y -ingrouporderid %%GROUP_ORDID
DO_OK
END_ON

This is the error:

-INGROUPORDERID value too long(max=8):'%GROUP_ORDID'

"last" is not an option as there will be more than one JIM_D_TEST1 scheduled at the same time. I despise force-order in the set tab as it creates havoc if someone force orders the scheduling group. Can some one guide me in the right path?

Posted: 03 Jul 2013 5:27
by gglau
FW does not interpret any variables within rule file, whether variable from shell or from CTM. The only way is to generate rule file dynamically based on content from the concerned variables.