Sample ARSLOG user exit script for UNIX™

You can use the sample ARSLOG user exit script for UNIX that is provided by IBM®.

Sample ARSLOG user exit script for UNIX:
# $1 - OnDemand Instance Name
# $2 - Time Stamp
# $3 - Log Identifier
# $4 - Userid
# $5 - Account
# $6 - Severity
# $7 - Message Number
# $8 - Message Text
# $9 - Document File
#

echo "$@" >> ${ARS_TMP}/syslog.log

if [ -n "$9" ];then
   if [ -f "$9" ];then
      print "Copy log doc $9\n" >> ${ARS_TMP}/syslog.log
      cp $9 /tmp/syslogdocs/$(basename $9).doc 2>> ${ARS_TMP}/syslog.log
   else
      print "$9 does not exist\n" >> ${ARS_TMP}/syslog.log
   fi
fi

exit 0