For Our Example - AIF - Technical Notes

Disable Filters and Pipes On-The-Fly

Product
AIF
AFS_Version
7.7
Category
Technical Notes
language
English
audience
public

Remember, we wanted a PaF that build and deploy spellcheck databases only once a week, while the PaF is executed once a day.

Using the disable attribute in paf.xml file as described in the previous section, the following lines could be added to the script used to launch the PaF. This will result in generating spellcheck only on saturday.

#!/bin/bash

DAY=$(date +%u)

if [ ${DAY} -eq 6 ]
then
export DONT_DO_SPELLCHECK=false
# Can be replaced by next line from 7.6.2
# export AFS7_DISABLE_SP_PIPE=false
else
export DONT_DO_SPELLCHECK=true
# Can be replaced by next line from 7.6.2
# export AFS7_DISABLE_SP_PIPE=true
fi