LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-04-2004, 04:38 AM   #1
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Rep: Reputation: 30
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
 
Old 10-04-2004, 11:23 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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.
 
Old 10-04-2004, 12:53 PM   #3
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
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
 
Old 10-04-2004, 01:16 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Are you able to run these commands without X ?
 
Old 10-04-2004, 11:30 PM   #5
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CGI Scripts not executing, pls help john_d13 Linux - General 3 12-22-2004 02:05 PM
CGI File Not Executing on Apache Server kaplan71 Linux - Software 2 10-21-2004 07:12 AM
apache displays .cgi file instead of executing it hewsonism Linux - Software 2 01-13-2004 09:12 PM
Executing a program on server using CGi/PERl ?! avios Red Hat 1 12-29-2003 02:34 AM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration