Re: php ejecuta Scrip y recive Variable
| From: | Antonio Galicia Ceballos | Date: | Thu, 03 Jan 2002 16:39:56 +0000 |
| Subject: | Re: php ejecuta Scrip y recive Variable | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-17309@lists.php.net to get a copy of this message | ||
On Wed, 2 Jan 2002, Marco Dueñas wrote:
> No me refiero al estado 0 , 1 del estado de finalizacion del script,
> sino a una variable que genere el Script.
Dices esto:
#!/bin/sh
#
# Ejempo: $RUTA/ejemplo.sh
#
echo Esto es un ejemplo
y el php así:
<?php
// Ejecutamos el comando
$resp =
/ruta/al/ejeplo.sh;
// Imprimimos el resultado
echo $resp;
?>
¿Cúal es el problema?
Saludos,
Toño.
---
mailto: jcgalici@agc.com.mx