Re: Exec, system, passthru didn't work
| From: | Reuben D Budiardja | Date: | Mon, 16 Jul 2001 18:25:52 +0000 |
| Subject: | Re: Exec, system, passthru didn't work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58100@lists.php.net to get a copy of this message | ||
On Monday 16 July 2001 10:37 am, you wrote:
> > On Monday 16 July 2001 09:42 am, you wrote:
> > > > I tried to execute the following command from the web interface using
> > > > a system call
> > > > /usr/bin/play a_wave_file.wav
> > > >
> > > > I tried exec, system, passthru, and shell_exec. None of them worked,
> > > > that is I didn't hear any sound played. ...
> > >
> > > Does it work from the shell if you su to the web server user id and try
> > > to run it? 99% of shell exec issues are permission-related.
> > >
> > > -Rasmus
> >
> > Yes, I su as root and then su as the web server user id, it worked. I
> > also check the permission is already 755.
>
> Ok, and does this play program actually work without a controlling tty?
I can only guess what you mean here, but I think that's a good point. Maybe
the play program wouldn't work withough a controlling tty. Do you know how
to check, or any work around?
Thanks.
Reuben D. Budiardja