Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

cgi-bin pb

Altera_Forum
Honored Contributor II
40,474 Views

Hello 

I have a problem with a script CGI 

 

I do a kernel, a file system and my application like the documentation. 

No problem for compilation. 

No probleme for upload the kernel and the filesystem with my Index.html and my script CGI. 

 

I have my web page OK, but the script not respond or i have a blanck page... 

 

any body know why ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif  

 

thanks http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

 

Pascal Fougeray
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
39,665 Views

You can not use script in CGI , if you do not have perl. 

You may try the uClinux-dist in nios wiki. There is a cgi-demo with it.
0 Kudos
Altera_Forum
Honored Contributor II
39,665 Views

 

--- Quote Start ---  

originally posted by hippo@Feb 27 2007, 10:35 PM 

you can not use script in cgi , if you do not have perl. 

you may try the uclinux-dist in nios wiki. there is a cgi-demo with it. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21917) 

--- quote end ---  

 

--- Quote End ---  

 

 

hello 

 

How do that, how to install perl ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

Perl in linux on the nios board ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

i would like run the script for light on/off the led of the board like is explain in this forum . 

I don&#39;t understand why i must use perl ? 

 

Import the folder with cgi-test.cgi, it&#39;s not by goal. 

 

My script cgi is ok, the problem is just i have a black page. 

If i run my script cgi alone : http://192.168.0.15/cgi-bin/script_cgi.cgi (http://192.168.0.15/cgi-bin/script_cgi.cgi

i receive the message : No Content-Length was sent with the POST request. 

 

But if i run with the HTML page, i see the browse search and the page stay blanck http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
39,665 Views

I mean, you can install uClinux-dist as in the nios wiki, and modify the cgi-demo example C program to control your LEDs etc. There is no need to install perl, as it is more difficult. 

http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)
0 Kudos
Reply