Trying to get the following code to work....
DATE=`date +%Y-%m-%d -d "yesterday"`
for i in `cat IR_clients.txt`
do
echo -e "$i \c"
mccli activity show --name=$i|grep -i $DATE | if [ $? -ne 0]; then
echo -e "\n"
else
cut -c 17-38 |awk 'BEGIN {RS="="} $1=$1'
fi
done
Looping thru a list of clients.....
Using Avamar command to check for a backup from yesterday...
If a backup occurred then cut out what is needed..
If not then perform a crlf...
The testing part doesn't seem to be working...
Any ideas?
Thanks
Joe Despres
DATE=`date +%Y-%m-%d -d "yesterday"`
for i in `cat IR_clients.txt`
do
echo -e "$i \c"
mccli activity show --name=$i|grep -i $DATE | if [ $? -ne 0]; then
echo -e "\n"
else
cut -c 17-38 |awk 'BEGIN {RS="="} $1=$1'
fi
done
Looping thru a list of clients.....
Using Avamar command to check for a backup from yesterday...
If a backup occurred then cut out what is needed..
If not then perform a crlf...
The testing part doesn't seem to be working...
Any ideas?
Thanks
Joe Despres