On 21-Jun-2001 Sniper \(at work\) wrote:

>  You can check all the failure possibilities by inspecting
> `$?' like this:
>      $exit_value  = $? >> 8;
>      $signal_num  = $? & 127;
>      $dumped_core = $? & 128;

Voil� comment j'ai compris le truc :

RESTART_PPPD;
system("/usr/sbin/pppd call script logfile /var/log/pppd.log");
$exit_value = $? >> 8;
if ($exit_value != 0) { goto RESTART_PPPD }

Le pb, c'est que $exit_value est initi�e avec "0" avant m�me que
la commande pppd ait "accroch�" la porteuse... comme lorsqu'on
lance sous bash une commande en arri�re plan.

-- 
http://www.calvo-france.com/linuxtips.php (10/06/01)
________________________________________________
 A  r  n  a  u  d    C  a  l  v  o           47�43'60N  0�31'0W
_______________________________________________
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel

Reply via email to