PrintInfo()
{
Info=$*
printf "%-20s%-60s" "`date '+%Y-%m-%d %H:%M:%S'`" "${Info}"
}
CheckResult()
{
Result=$?
if [ ${Result} -ne 0 ]
then
echo "ERROR"
exit 1
else
echo "SUCCESS"
fi
}
PrintInfo()
{
Info=$*
printf "%-20s%-60s" "`date '+%Y-%m-%d %H:%M:%S'`" "${Info}"
}
CheckResult()
{
Result=$?
if [ ${Result} -ne 0 ]
then
echo "ERROR"
exit 1
else
echo "SUCCESS"
fi
}