Re: passing variables from php to bash script..
| From: | Ben Logan | Date: | Sun, 08 Jul 2001 11:48:34 +0000 |
| Subject: | Re: passing variables from php to bash script.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56751@lists.php.net to get a copy of this message | ||
If I needed to do that, I would use one of system(),exec(),PassThru(),
or the backtick (``) operator to execute the shell script, and pass
the variables as arguments to the shell script. The shell script
would accept the command line arguments, and convert them to whatever
local variables it needed.
Hope this helps,
Ben
On Sun, Jul 08, 2001 at 01:01:08PM +0800, Mark Lo wrote:
> Hi,
>
> I would like to know. Is it possible to use php to exec a bash script
> with variable passing from php to bash. If so how to do this.
>
>
> Thank you
>
>
> Mark Lo
>
>
>
> _______________________________________________
> Redhat-list mailing list
> Redhat-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/redhat-list