Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/05/2011, 11:23
[email protected]
 
Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 18 años, 6 meses
Puntos: 1
Salida standar php

Necesito que me muestre salida standar de la ejecucion del shell.

He probado con system, exec y passthru y ninguno me ha funcionado.

Alguien tiene idea de como hacer funcionar esto???

Código PHP:
<?
   $apache2
="/usr/sbin/ apache2 status";
?>

<table width=720px border=1 cellspacing=0 cellpadding=2 id=linea>
  <tr class=Estilo3 bgcolor=F8F8F8>
    <td width=15% height=23 align=center id=linea>Nombre-Proceso</td>
    <td width=25% height=23 align=center id=linea>Descripcion-Proceso</td>
    <td width=20% height=23 align=center id=linea>Estado-Proceso</td>
    <td width=40% height=23 align=center id=linea>Modificar-Estados-Proceso</td>
  </tr>
  <tr class=Estilo2>
    <td width=15% height=23 align=left   id=linea>rcapache2</td>
    <td width=25% height=23 align=left   id=linea>Servicio Web HTTP</td>
    <td width=20% height=23 align=center id=linea><input type="text" name="status" id="status" value="<? echo system($apache2); ?>"></td>
    <td width=40% height=23 align=center id=linea>
     <input type="submit" name="bot3"    id=buscar value="Activar" >
     <input type="submit" name="bot4"    id=buscar value="Detener">
    </td>
  </tr>
</table>
Desde ya se agradece cualquier tipo de colaboracion.