Greetings,

I recently wrote a C program as follows;

#include <stdio.h>
> #include <stdlib.h>
>
> void main()
> {
>     system("notify-send -u normal -t 200 'You Have received a new
> message'");
>     system("cvlc /home/ashenafis/Music/BabyMessage.mp3");
>     return 0;
> }
>

Compiled it and saved the executable in "/usr/sbin/play".

When I run it from the terminal it works fine, however it does not work when
I try to run it from a PHP script using

<?php exec("/usr/sbin/play"); ?>
>

Is there something I am missing? Please help.

-- 
Ashenafi S.
http://ashenafis.webs.com
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to