著者: Pierre Pronchery
日付:
To: Guilde
題目: Re: Gestion des codes d'erreurs
Philippe B wrote:
> RETURN CODES
> 0 : No virus found.
>
> 1 : Virus(es) found.
>
> 2 : Error occured.
>
> comment gerer ca en bash ??
if [ $? -eq 0 ]; then
echo no virus found
elif [ $? -eq 1 ]; then
echo virus(es) found
elif [ $? -eq 2 ]; then
echo error occured
fi
--
Pierre