On Tue, 25 Jul 2006, Tarhon-Onu Victor wrote:
i=$[$i+1];
if [ "${lista_isp[$i]}" == "$default_gw" ]; then
p_gw=$i;
fi;
Hmm.. if-ul asta tre' sa fie:
if [ "${lista_isp[$i]}" == "$default_gw" -a $retval -eq 1 ]; then
Adica memoram pozitia (cu scopul de a cauta alta) dor daca ip-ul
de monitorizat e jos iar pe pozitia corespunzatoare din array-ul cu
gateway-uri e fix default gw-ul curent.
--
Any views or opinions presented within this e-mail are solely those of
the author and do not necessarily represent those of any company, unless
otherwise expressly stated.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug