Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi Michael,
thank you for the detailed explanation of haserl. I think haserl is the right thing for my tasks. The first task is: I want to display network informations such as the actual ip address and mac address of the board as well as some parameters like the used kernel version and things like that. The second task: Control the board through the website like let the leds blink. I have this already done with a different stack (interniche's nichestack) under the nios-ide. But under uClinux I don't see how to change the bits of the leds because I can't use macros like "IOWR16_DIRECT". But this is another topic. If I understand you right I could start an applicaton or program through the haserl script. But I still have a question on haserl. I used your haserl script on the alterawiki and tried to run the file 'config.has' in the cgi-bin directory on my board with boa. I didn't change the file except replacing the line#! /bin/haserl --shell=/bin/msh to #! haserl --shell=/bin/hush because i can't find haserl under the /bin directory and I use 'hush' instead of 'msh'. I always get the 502 Bad Gateway Error. When I start the 'config.has' on the command line I can't execute it. Only by writing haserl config.has the script starts but without recognizing the html code. I always get "Bad command or file name" error. Execution of terminal programs as i.e. cat/proc/version in the script work fine. Urmel