check_empty()
{
count=`ls \home\myfolder | wc -l`
echo "count is "
echo "$count"
if test count -eq 0
then
echo "Folder is empty"
set err_msg = " FOLDER is empty..."
echo $err_msg
set sys_errs = "Y"
exit 1
else
echo "source folder is not empty folder"
fi
}
#**********************************************************************#
#** MAIN PROGRAM ******
#**********************************************************************
check_empty()
{
count=`ls \home\myfolder | wc -l`
echo "count is "
echo "$count"
if test count -eq 0
then
echo "Folder is empty"
set err_msg = " FOLDER is empty..."
echo $err_msg
set sys_errs = "Y"
exit 1
else
echo "source folder is not empty folder"
fi
}
#**********************************************************************#
#** MAIN PROGRAM ******
#**********************************************************************
check_empty()
Comments
Post a Comment