cron job verification

Michael ODonnell michael.odonnell at comcast.net
Wed Feb 2 14:52:00 EST 2005



>   rsync <options>
>   if ! $? ; then
>     echo -e "\nrsync completed successfully!\n"
>   else
>     echo -e "\nrsync failed!\n!"
>   fi


BTW, it's legit (and sometimes clearer) to do it like this:

   if rsync <options>
   then
       echo -e "\nrsync completed successfully!\n"
   else
       echo -e "\nrsync failed!\n!"
   fi
 



More information about the gnhlug-discuss mailing list