actually I have tried 2 ways to do this.
the other way isnt working.
function integrityChk
{
# function to freeze the instance
#/usr/bin/iris terminal $ENV -U%SYS "set sc=$$CheckList^Integrity(,,,,5)"
iris terminal $ENV -U%SYS << EOF
Do CheckList^Integrity(,,,,5)
do Display^Integrity(,1,)
EOF
}
any idea why this method not working?
thanks Alexander!
there is my function of the script, it worked just fine. I noticed that there is a mistake in my code that didnt remove the temp file as the results of the check, so every time the script runs, it will dump results into the same file and the file got send to me as email.
anyways, silly me and all fixed.
function integrityChk
{
# function to freeze the instance
echo 'set sc=$$CheckList^Integrity(,,,,5) do Display^Integrity(,1,) kill ^IRIS.TempIntegrityOutput(+$job)' | irissession $ENV -U%SYS
}
then passing the parameter to it to let it adapt to environment you want to run with
yeah, since "kill ^IRIS.TempIntegrityOutput(+$job)" errors out in the function and I had to remove it.
anyways. thanks and will look into the link and learn more!