At 01:41 PM 11-04-2001 +0530, you wrote:
>Hello all.
>Can anyone suggest me any webserver which i need to put on rtlinux system
>space and efficiency are main problems since RAM is limited.
>The server will be loaded and stored in RAMDISK and once it is switched
>off..its gone since it is on RAM.
>I need basic web pages hosting and some scripting.
>which scripting language is better?
You might try python. As python is an interpreter, calling it up on the fly
works fine. It is very easy to invoke python servers by
python or #!usr/bin/python (command line or as shell script)
import ServerModuleName
call your stuff (scripting)
A basic server module is cgi.py which along with CGIHTTPserver.py is in
the Lib of the standard distributions. They're small:
Directory of ..\Python21b\Lib
CGIHTT~1 PY 10,440 02-09-01 1:41p CGIHTTPServer.py
CGI PY 33,533 03-19-01 10:46a cgi.py
2 file(s) 43,973 bytes
If you need only certain functions or classes XofM from a module Module, you
can import just them with
from Module import XofM
Python has been squeezed onto systems with tight memory.
o Handhelds: both the Psion (8MB memory) and Palm Pilot (has 4MB, 450k
RAM; see pythonjournal.com for description and links). The Palm version
was trimmed (to 123k as .tgz gcc-based binary); regular mini python (a
streamlined version which fits on a floppy), I believe, was put on the Psion.
o The Deeply Embedded project at http://www.abo.fi/~iporres/python/
claims to have python that "runs on the Hitachi SH1 evaluation board, a
32-bit RISC processor with 256 Kb of RAM and no OS, so it probabily runs on
most 32-bit systems with a working GNU Tool Chain." Its 80k .gz appears
ever corrupt, though.
o You can package up your code with python engine with [reduced]
library and all. Usually freeze.py is used, but imputil.py is used for what
is called 'The "small" distribution' of Greg Stein is 9k as small.zip,
http://www.lyra.org/greg/small/ , uses OS.
Python has both binary and source distributions, opensource freeware,
cross-platform, good documentation; see python.org .
Hope to hear it's gone well.
>sorry for my english
>waiting for a response...please help..
>thanks
>kiran
>
>-- [rtl] ---
>To unsubscribe:
>echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
>echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
>--
>For more information on Real-Time Linux see:
>http://www.rtlinux.org/rtlinux/
>
>
>
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/