hi All,
we have a script to remove the files from particular path,when we tryingto run manually the script went to success and removed the files but the same script which is running by other team it got failed and giving the error "2 (RC)2 "..what is the cause of the failure..and we passing the arguments for this script like clear_cache.sh hrprd hrprd3.. please find the attached script and let me know..
# Clear the cache
if [ "$#" != "2" ]; then
echo "Usage: $0 Sid Domain "
exit
fi
SID=$1;export SID
DOMAIN=$2;export DOMAIN
typeset -l SID
typeset -l DOMAIN
cd /psoft/$SID/appserv/$DOMAIN/CACHE
rm -r /psoft/$SID/appserv/$DOMAIN/CACHE/*
reply would be really appreciated..Thanks