Le 27/06/2014 22:48, jdd a écrit :
right now the problem is only: "how to run a cgi from apache"
tutorials are here
to solve the OP problem, first we have to see why apache is not running cgi. the cgi of the OP is a bash script. The example in the apache page is perl, so may be begin to look at the very apache example: #!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello, World."; writing this very script here http://dodin.info/essai/th/test.pl it works. Good, so at least the OP can write his script in perl :-(. Then I tried an other bash script found on the net and it worked. What do not seems to work is bash loops. The following script http://dodin.info/essai/th/image.sh do (at time of writing) print Hello world end but the loop is ignored. Other syntax makes the "end" to be also ignored #!/bin/bash echo "Content-type: text/html" echo "" echo '<html>' echo '<head>' echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' echo '<title>Hello World</title>' echo '</head>' echo '<body>' echo 'Hello World' for name in *.jpg do echo “<img src=$name>" "<br />" "$name" "<br />”; done echo '<br />' echo 'end' echo '</body>' echo '</html>' exit 0 I'm sure somebody will point out the error :-) thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org