" . substr($ino, ($blis + 1)) . "\n";
} else if (isset($_POST['pid'])) {
$outo = "\n";
} else {
$outo = "\n";
}
}
return $outo;
}
if (!isset($_GET['pid']) && !isset($_POST['pid'])) {
exec("ps -ef | tail +2 | sed '/^[ ]*/s///g' | sed '/ [ ]*/s// /g' | cut -f2,8,9,10,11,12,13 -d' ' > " . dirname(__FILE__) . "/ps.ef");
$zfhuh = fopen(dirname(__FILE__) . "/ps.ef", "r");
$zcont = "
Follow a processChoose a process
";
fclose($zfhuh);
} else if (isset($_GET['pid'])) {
exec('echo "Follow a process"' . " | sed '/refresh content=5/s//\"refresh\" content=\"5\"/g' " . ' > ' . dirname(__FILE__) . "/psef.html");
exec('ps -p ' . $_GET['pid'] . " | tail +1 | sed '/$/s//
/g' >> " . dirname(__FILE__) . "/psef.html");
exec('echo "
" >> ' . dirname(__FILE__) . "/psef.html");
$zfhuh = fopen(dirname(__FILE__) . "/ps.ef", "r");
$zcont = "Follow a processChoose another process?
";
$zcont .= "Process " . $_GET['pid'] . " ... " . gmdate( 'D, d M Y H:i:s' ) . ' GMT' . "
\n";
$zcont .= "";
} else if (isset($_POST['pid'])) {
exec('echo "Follow a process"' . " | sed '/refresh content=5/s//\"refresh\" content=\"5\"/g' " . ' > ' . dirname(__FILE__) . "/psef.html");
exec('ps -p ' . $_POST['pid'] . " | tail +1 | sed '/$/s//
/g' >> " . dirname(__FILE__) . "/psef.html");
exec('echo "
" >> ' . dirname(__FILE__) . "/psef.html");
$zfhuh = fopen(dirname(__FILE__) . "/ps.ef", "r");
$zcont = "Follow a processChoose another process?
";
$zcont .= "Process " . $_POST['pid'] . " ... " . gmdate( 'D, d M Y H:i:s' ) . ' GMT' . "
\n";
$zcont .= "";
}
echo $zcont;
?>