List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:May 20 2002 2:42pm
Subject:Re: Check tables?
View as plain text  
Myisamchk returns an exit code.


if myisamchk myfile.MYI ; then
    do something
else
    do something else
fi

Mark wrote:

>Hello,
>
>Is there a way I can do a "CHECK TABLES" which will return an exit code of
>some sort, to use in a shell-script? Looking at the output of a myisamchk is
>fun, but I rather have a utility too that will report an error-status that I
>can use to decide whether to make a backup/restore, etc.
>
>Thanks
>
>- Mark
>
>P.S. Keeping the bot happy: mysql
>
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <mysql-thread109445@stripped>
>To unsubscribe, e-mail
> <mysql-unsubscribe-gerald_clark=suppliersystems.com@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


Thread
Check tables?Mark18 May
  • Re: Check tables?Gerald Clark20 May