LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Executing from cgi (http://www.linuxquestions.org/questions/programming-9/executing-from-cgi-238538/)

theonebeyond 10-04-2004 05:38 AM

Executing from cgi
 
Hi there!

I am trying to make a webinterface to xmms (using xmms-shell) or to amarok via dcop in perl...

But my proglem is, that the calls

system `dcop --user myname amarok player pause` or system `xmms-shell -e pause`

or

exec "dcop --user myname amarok player pause" or exec "xmms-shell -e pause"

seem like they don't work. I am relatively new to cgi with perl. I think this might be a permissons problem, because of cgi-security.

Does someone have a usefull hint for me?

Thanks, Sascha

Hko 10-04-2004 12:23 PM

Depending on you distribution, apache runs as its own user (or "nobody"), which may not have the permission to execute dcop. Or some safety settings for apache (or mod_perl?) prevent executing dcop.

But first try to include the full path to the dcop executable. This may be sufficient and the easiest solution.

theonebeyond 10-04-2004 01:53 PM

So, in case I wand or have to change something about mod_perl (what erver that is :-) ) what could I do ???

I used the full path,... didn't change a thing :-(

Thanks and greetings, Sascha

Cedrik 10-04-2004 02:16 PM

Are you able to run these commands without X ?

theonebeyond 10-05-2004 12:30 AM

eehhmm... I don't think so. The commands themself are sure availble, but xmms or amarok need X as far as I know ... so... I can run the commands "xmms-shell" and "dcop" but without X, there is nothing that they can control...

Greetings, Sascha


All times are GMT -5. The time now is 12:50 PM.