260 IBM Content Manager OnDemand Guide
TITLE=$(print "$3 $4 $5" | ${SED} 's/-/ /g')
if [[ ${OS} = AIX ]] ; then
/bin/enq -r -P "$1" -N $2 -T "${TITLE}" $6 ${EXTRA_OPTIONS} ${PRT_OPTIONS} ${FILE}
else
${BASE_DIR}/lprafp -p "$1" -s "${ARSPRT_HOSTNAME}" -o "COPIES=${2}" -o 
"JOBNAME=${TITLE}" -o "TITLE=${TITLE}" $6 ${EXTRA_OPTIONS} ${PRT_OPTIONS} ${FILE}
fi
RC=$?
if [[ ${RC} = 0 ]] ; then
if [[ ${OS} != AIX ]] ; then
${RM} -f ${FILE}
       else                                                            
        ####################################                           
        # Test if filename ends up with .0 #                           
        # If not,skip around code to update#                           
        # index. This prevents update of #                           
        # same index several times as only #                           
        # one .cntl file is created #                           
        # when server print is made for    #                           
        # multiple documents and this      #                           
        # script is called one time for    #                           
        # each doc to print.               #                           
        ####################################                           
        ext=$7                                                         
        ext=${ext##*.}                                                 
        if [[ ${ext} = 0 ]] ; then                                     
         ####################################                          
         # Compute .cntl filname from       #                          
         # supplied parameter $7            #                          
         ####################################                          
         fil=$7                                                        
         mine=${fil%.*}.cntl                                           
         ####################################                          
         # Double check if .cntl file exist #                          
         ####################################                          
         if test ! -f $mine                                            
          then echo "File $mine not found"                             
          exit 1                                                       
         fi                                                            
         ####################################                          
         # Set static variables             #                          
         ####################################                          
         host=9.99.99.99 
         nohit=no                                                      
         applgrp1=ICAlog                                               
         folder1=ICAlog                                                
         applgrp2=applg2                                               
         folder2=folder2                                               
         applgrp3=applg3                                               
         folder3=folder3                                               
         ####################################