Re: Linux command in PHP
| From: | Curt Zirzow | Date: | Wed, 12 May 2004 16:13:53 +0000 |
| Subject: | Re: Linux command in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186007@lists.php.net to get a copy of this message | ||
* Thus wrote Mike Mapsnac (mikerh9@hotmail.com):
> I have script that basically process a file. If something found in the
> file, the script send email.
>
> Today I tried to add another option, that gives sound and send email.
> The script works ok when I run from shell. But when I add the code to
> cronjob, the email is send but NO SOUND. Any ideas what can cause such
> problem?
>
> # Below the code that start the xmms sound
> $alert = "/usr/bin/xmms /home/mike/Desktop/song1.mp3";
>
> `$alert';
This is an X problem, not php. xmms has no clue what :display to
run xmms on.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."