LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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: 244Reputation: 244Reputation: 244
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration