|
Posted by Koncept on 11/15/06 19:51
In article <l4H3h.31434$Fk1.63500@twister2.libero.it>, Shift
<shift@nospam.com> wrote:
> > Yes, something didn't go right with the execution, which the 1
> > indicates, if it had gone right it had returned 0.
> >
> > You could try with the shell_exec() instead and see if the shell
> > environment will give some advantages over using exec().
> >
> >
> > //Aho
>
> On old server with php 4.2.1 and apache 1.3 the esecution is correct;
> some php.ini parameter ?
>
> Shift
>
Do you have the -S flag option?
-S The -S (stdin) option causes sudo to read the password from the
standard input instead of the terminal device.
$ echo "password" | sudo -S whoami
root
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Navigation:
[Reply to this message]
|