I have created two jil files name AY.jil and PY.jil. I have three issues which are as follows:
-
how do you add a global variable value from a shell script program to a jil
file? -
PY.jil needs to check every five minutes on the completion of the AY.jil
jobs and AY.jil needs to check every five minutes on the completion of the
PJ.jil jobs. -
How do you setup the watch_file in each jil to check every five minutes?
-
How do you set up the success command for the file dependency?
I am getting this error :
I am only interested in reading in the global variable value 2 in PJ.jil:
sendevent -E SET_GLOBAL -G "DIFF_VALUE=2"
Here is part of my shell script program:
while read DIFF_VALUE FLAG
do
if [ "${DIFF_VALUE}" -ge "2" -a "${FLAG}" = "Y" ]
then
sendevent -E SET_GLOBAL -G "DIFF_VALUE=2"
elif [ "${DIFF_VALUE}" -lt "1" -a "${FLAG}" = "N" ]
then
sendevent -E SET_GLOBAL -G "DIFF_VALUE="
fi
done < ${DIFF_FILE}
Here are my jil progams (AY.jil and PY.jil):
Insert PJ_job: cmd_job
job_type: CMD
command: /path/to/script/script.sh DIFF_VALUE=$${DIFF_VALUE=2}
watch_file: /path/to/script/AY.jil
watch_interval: time_in_mins
machine: machine_name
owner: user_name
condition: s(/path/to/AY.jil)
Insert AY_job: cmd_job
job_type: CMD
watch_file: /path/to/script/PJ.jil
watch_interval: time_in_mins
machine: machine_name
owner: user_name
condition: s(/path/to/PJ.jil)