> Thanks for your instant support. What I am trying to do is
> simply run the Linux O.S. commands using CGI + Apache.
Not sure what linux OS commands are, and reserving my comments on what a
bad idea this is, but anyway...
> a) In httpd.conf
> ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
Ok, this is fine.
> b) Started Perl
> /usr/bin/perl -w &
And what is this supposed to do? It's basically a no-op. perl will
sleep forever, never doing anything. Ever. You do not need this.
> Now I am not exactly Knowing What to do . If someone can give me in
> simple steps a simple configuration and sample CGI script + I will be
> reading the links sent by you guys
Put your executable files in /usr/local/apache2/cgi-bin/
Make sure they are executable
Run them from the browser using http://yourserver/cgi-bin/filename
Try following script as your cgi test.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
while (($key, $val) = each %ENV) {
print "$key = $val<BR>\n";
}
-Krishna
--
http://mm.glug-bom.org/mailman/listinfo/linuxers