Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - running perl script file through slinger web server on QNX6.3: (5 Items)
   
running perl script file through slinger web server on QNX6.3  
Following is my requirement:
I have to develop a web application ( to be on windows) to communicate an application running on QNX6.3.

QNX has slinger web server that supports CGI perl, SSI and DataServer
I am using CGI perl for scripting

For validating input data from html file (GUI) I am using perl script.

Issue: the perl script called from html file is not executing. The html page is prompting to save the .pl file which
is specified in html file.

Below is the proceedure I have followed:

exported following env variables-
export CMD_INT=/usr/bin/perl
export HTTPD_ROOT_DIR=/usr/htmldoc
export HTTPD_ROOT_DOC=Login.html
export HTTPD_SCRIPTALIAS=/usr/cig-bin

slinger -p 8080 &

then opened voyager browser with http://localhost:8080/ -- This opens Login.html.
But when password entered and login button is clicked, a download file dlg is displayed to save the perl script file.

This testing i am doing on local host.

I am attaching the html and .pl file for your reference.

Kindly let me know if you have any solution for this at the earliest.
If possible you could also provide be alternate solution how to go about with web application.
Attachment: Compressed file files.zip 1.75 KB
Re: running perl script file through slinger web server on QNX6.3  
I know it's a little bit too simple, but has the script execution attribute?
Re: running perl script file through slinger web server on QNX6.3  
Anyway, try to run the script on the command line first. And check that you have perl in right place according to your 
script (#!/usr/local/bin/perl)
Re: running perl script file through slinger web server on QNX6.3  
Hi,

My perl is in /usr/bin/perl

And at command line the script is executed.

Thanks
Sravanthy

> Anyway, try to run the script on the command line first. And check that you have perl in right place according to your

> script (#!/usr/local/bin/perl)
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post46446
>
>



Confidentiality Notice

The information contained in this electronic message and any 
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain confidential or privileged 
information. If you are not the intended recipient, please notify
the sender at Bharat Electronics  or support@bel.co.in immediately
and destroy all copies of this message and any attachments.
Re: running perl script file through slinger web server on QNX6.3  
1. Save the page as index.shtml rather than index.html.
2. export HTTPD_ROOT_DOC=index.shtml
3. Start the web-sever with the following options --> slinger -e -s -p 80 &

It should work now.

Nadeem.