Обсуждение: PHP + bash script

Поиск
Список
Период
Сортировка

PHP + bash script

От
Marcelo Pereira
Дата:
Hi All,

How can I run a bash script from a PHP script??

I have a script (bash) that do some things, and I would like this script
to be executed from a HTML page using PHP.

How can I do that?

Thanks in advance,

Marcelo Pereira

-- Remember that only God and Esc+:w saves.
        __
       (_.\           Marcelo Pereira       |
        / / ___                             |
       / (_/ _ \__    Matematica/99 - IMECC |
_______\____/_\___)___Unicamp_______________/




Re: PHP + bash script

От
Vince Vielhaber
Дата:
On Mon, 1 Jul 2002, Marcelo Pereira wrote:

> Hi All,
>
> How can I run a bash script from a PHP script??
>
> I have a script (bash) that do some things, and I would like this script
> to be executed from a HTML page using PHP.
>
> How can I do that?

http://www.php.net/manual/en/ref.exec.php

Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH    email: vev@michvhf.com    http://www.pop4.net
         56K Nationwide Dialup from $16.00/mo at Pop4 Networking
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






Re: PHP + bash script

От
Marcelo Pereira
Дата:
Hi Vince,

I have never received a answer so fast in my life ;-)

Thanks, really thanks.

Marcelo Pereira

-- Remember that only God and Esc+:w saves.
        __
       (_.\           Marcelo Pereira       |
        / / ___                             |
       / (_/ _ \__    Matematica/99 - IMECC |
_______\____/_\___)___Unicamp_______________/

--- Vince Vielhaber, with your fast fingers, wrote:

:> On Mon, 1 Jul 2002, Marcelo Pereira wrote:
:>
:> > Hi All,
:> >
:> > How can I run a bash script from a PHP script??
:> >
:> > I have a script (bash) that do some things, and I would like this script
:> > to be executed from a HTML page using PHP.
:> >
:> > How can I do that?
:>
:> http://www.php.net/manual/en/ref.exec.php
:>
:> Vince.
:> --
:> ==========================================================================
:> Vince Vielhaber -- KA8CSH    email: vev@michvhf.com    http://www.pop4.net
:>          56K Nationwide Dialup from $16.00/mo at Pop4 Networking
:>         Online Campground Directory    http://www.camping-usa.com
:>        Online Giftshop Superstore    http://www.cloudninegifts.com
:> ==========================================================================
:>
:>
:>