Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » PPP_Check / checking ppp script php

PPP_Check / checking ppp script php

<?php
$smscheck = exec(“ifconfig | grep ppp0 | grep -v grep | awk ‘{ print $1}'”);
if($smscheck==””)
{exec(“/etc/init.d/networking restart”);}
else
{
echo(“Koneksi masih tersambung \n”);
echo(“”);
}
?>

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>