Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] CGI, Apache & Quanta
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
sokar2000
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2005
Posts: 137
Location: Zu Hause

PostPosted: Wed Jun 08, 2005 11:46 am    Post subject: [OT] CGI, Apache & Quanta Reply with quote

Malzeit!

Ich sollte eine interaktive LernCD für zukünftige "Web-Designer" erstellen. Dazu hab ich n ziemlich umfangreiches CGI-Prog (C++) entwickelt, das den Benutzer duch das HTML-Handbuch leitet. Nun habe ich einige Übungen reinfliessen lassen. Der Benutzer soll auf nen Link klicken, Quanta soll sich und eine HTML-Datei öffnen. Sobald der Benutzer das File speichert und Quanta wieder schliesst, geht meine cgi hin, und analysiert den HTML-Code.

Mein Problem liegt beim Öffnen von Quanta. Ich hab folgende in der Datei /var/www/localhost/cgi-bin/quanta.cgi:

Code:
#!/bin/bash
echo "Location:http://localhost/cgi-bin/index.cgi?=$1"
echo ""
/usr/kde/3.4/bin/quanta --display :0.0 /var/www/localhost/htdocs/aufgaben/$1 &


Ich kann auf den Link klicken, soviel ich will, es funktioniert nicht.

Nur: Wenn ich oben geschriebenes in der Konsole unter dem User apache ausführe, funktioniert es.

Ich habe noch ein paar andere Scripts gemacht, z.B. für Gimp:

Code:
#!/bin/bash
echo "Location:http://localhost/cgi-bin/index.cgi?=$1"
echo ""
export DISPLAY=:0.0
gimp-2.2 /var/www/localhost/htdocs/aufgaben/$1 &


Hier funktioniert es tadellos!

Ich hab schon versucht, den Pfad von Quanta wegzulassen, quanta ohne Parameter zu starten, quanta aus dem Script als root zu starten, nix!

Hat irgend jemand noch ne Idee?

thx
_________________
Anstrengungen, ein Programm "User-freundlich" zu machen, führen zu neuer Arbeit an den "Computerkenntnissen" der User.
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Wed Jun 08, 2005 7:48 pm    Post subject: Reply with quote

Leite die Fehlerausgabe deines scripts doch einfach mal in ein File um.
Evvtl. kommst dann ja dahinter.
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
sokar2000
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2005
Posts: 137
Location: Zu Hause

PostPosted: Wed Jun 08, 2005 10:28 pm    Post subject: Reply with quote

Hab ich auch schon probiert, leider bleibt das File ansolut leer... trozdem thx
_________________
Anstrengungen, ein Programm "User-freundlich" zu machen, führen zu neuer Arbeit an den "Computerkenntnissen" der User.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum