Linux command in PHP
| From: | Mike Mapsnac | Date: | Wed, 12 May 2004 15:57:23 +0000 |
| Subject: | Linux command in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186001@lists.php.net to get a copy of this message | ||
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';
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963