diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 23:33:36 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 23:33:36 +0000 |
| commit | 24babecdd34c3b4671f64e7903c5f114e292d816 (patch) | |
| tree | aba497046dc66af3c8eee49ef4e3920eea9a6cbc | |
| parent | e70d404a101f985c709b5caddf55853ac48cb4a6 (diff) | |
| download | luasocket-24babecdd34c3b4671f64e7903c5f114e292d816.tar.gz luasocket-24babecdd34c3b4671f64e7903c5f114e292d816.tar.bz2 luasocket-24babecdd34c3b4671f64e7903c5f114e292d816.zip | |
Updated with new dynamic linking scheme.
| -rw-r--r-- | etc/README | 24 |
1 files changed, 9 insertions, 15 deletions
| @@ -5,18 +5,17 @@ This directory contains code that is more useful than the examples. This code | |||
| 5 | 5 | ||
| 6 | These are modules to suport dynamic loading of LuaSocket by the stand alone | 6 | These are modules to suport dynamic loading of LuaSocket by the stand alone |
| 7 | Lua Interpreter with the use of the "require" function. For my Mac OS X | 7 | Lua Interpreter with the use of the "require" function. For my Mac OS X |
| 8 | system, I place lua.lua in /usr/local/lua, luasocket.lua and the | 8 | system, I place all files in /Users/diego/tec/luasocket |
| 9 | libluasocket.dylib in /usr/local/lua/luasocket and set the following | 9 | and set the following environment variables: |
| 10 | environment variables: | ||
| 11 | 10 | ||
| 12 | LUA_PATH=/usr/local/lua/?/?.lua | 11 | LUA_PATH=/Users/diego/tec/luasocket/?.lua |
| 13 | LUA_INIT=@/usr/local/lua/lua.lua | 12 | LUA_INIT=@/Users/diego/tec/luasocket/lua.lua |
| 14 | LUA_FUNCNAME=_? | 13 | LUA_FUNCNAME=? |
| 15 | LUA_LIBNAME=/usr/local/lua/?/lib?.dylib | 14 | LUA_LIBNAME=/Users/diego/tec/luasocket/?.dylib |
| 16 | 15 | ||
| 17 | With that, I can run any luasocket application with the command line: | 16 | With that, I can run any luasocket application with the command line: |
| 18 | 17 | ||
| 19 | lua -l luasocket <script> | 18 | lua -l socket <script> |
| 20 | 19 | ||
| 21 | Much nicer than having to build a new executable just to initialize | 20 | Much nicer than having to build a new executable just to initialize |
| 22 | LuaSocket! | 21 | LuaSocket! |
| @@ -32,7 +31,7 @@ is to test the UDP code, but someone might find it usefull. | |||
| 32 | This little program is a client that uses the FTP and HTTP code to | 31 | This little program is a client that uses the FTP and HTTP code to |
| 33 | implement a command line file graber. Just run | 32 | implement a command line file graber. Just run |
| 34 | 33 | ||
| 35 | lua -l luasocket get.lua <remote-file> [<local-file>] | 34 | lua -l socket get.lua <remote-file> [<local-file>] |
| 36 | 35 | ||
| 37 | to download a remote file (either ftp:// or http://) to the specified | 36 | to download a remote file (either ftp:// or http://) to the specified |
| 38 | local file. The program also prints the download throughput, elapsed | 37 | local file. The program also prints the download throughput, elapsed |
| @@ -45,14 +44,9 @@ similar to check-links.pl by Jamie Zawinski, but uses all facilities of | |||
| 45 | the LuaSocket library and the Lua language. It has not been thoroughly | 44 | the LuaSocket library and the Lua language. It has not been thoroughly |
| 46 | tested, but it should work. Just run | 45 | tested, but it should work. Just run |
| 47 | 46 | ||
| 48 | lua -l luasocket check-links.lua {<url>} > output | 47 | lua -l socket check-links.lua {<url>} > output |
| 49 | 48 | ||
| 50 | and open the result to see a list of broken links. | 49 | and open the result to see a list of broken links. |
| 51 | 50 | ||
| 52 | cl-compat.lua | ||
| 53 | |||
| 54 | This module implements an old (and higher level) interface to SMTP provided | ||
| 55 | by the CGILUA toolkit. It runs on top of the LuaSocket SMTP interface. | ||
| 56 | |||
| 57 | Good luck, | 51 | Good luck, |
| 58 | Diego. | 52 | Diego. |
