#!/bin/bash

# Script to invoke chmod on file passed in.  This script is intended for use
# by Service Agent and will invokeed to change the permissions on a file.
#
#
# Usage:
#     saCHMOD <parms>
#
#     <parms>
#         $1 permissions
#         $2 filename
#
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 10/21/2004  M. Gregor     Initial release

actzTrace "ESA    T: -> saCHMOD $*"

if (($# < 2)); then
   actzTrace 'ESA    F: Missing required argument(s).'
   exit 100
fi

chmod $1 $2

actzTrace 'ESA    T: <- saCHMOD'

exit 0
