View topic - Running cgi shell script using slinger

Running cgi shell script using slinger

Discussion about the general applications that run on QNX6

Postby maeda » Tue Jun 05, 2007 11:49 am

Finally people,

The problem was my slinger version. I replaced with the version that Koko sent to me and it worked!!!!
After 5 day trying to make it work! hehehehehe
I appreciate your help guys, specially Koko, who spent a lot time trying to figure ut the problem!
Best regards
Active Member
Posts: 18
Joined: Mon Apr 23, 2007 12:40 pm

Postby kane » Wed Jul 11, 2007 4:41 am

I have the same problem. I can't run CGI script.

My slinger exe file size is - 39044.
I think I also have wrong version of slinger.
Where can I find correct version? Please help!!!!!
New Member
Posts: 3
Joined: Tue Apr 17, 2007 7:47 am

Postby sakshar » Wed Oct 15, 2008 1:40 pm

Hi Maeda,

I am facing some issues with slinger too.
Can you guide me?

The below is foo.html
<h1>Hello there!</h1>

random.c file

#include <stdio.h>
int main()
printf("Content-type: text/html\n\n");
printf("<h1>Hello there!</h1>\n");
return 0;

I compiled it as:
gcc random.c -o random.cgi

chmod 755 random.cgi

Content-type: text/html

<h1>Hello there!</h1>

The things that I have already done is:

Export the variables and run slinger
export HTTPD_ROOT_DIR=/usr/webdoc
export HTTPD_ROOT_DOC=foo.html
export HTTPD_SCRIPTALIAS=/usr/web/cgi-bin
slinger -d &

New Member
Posts: 6
Joined: Fri May 30, 2008 10:44 am

Postby mario » Wed Oct 15, 2008 4:21 pm

Please don't post all over the place.
QNX Master
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests