aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-30 23:33:36 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-30 23:33:36 +0000
commit24babecdd34c3b4671f64e7903c5f114e292d816 (patch)
treeaba497046dc66af3c8eee49ef4e3920eea9a6cbc /etc
parente70d404a101f985c709b5caddf55853ac48cb4a6 (diff)
downloadluasocket-24babecdd34c3b4671f64e7903c5f114e292d816.tar.gz
luasocket-24babecdd34c3b4671f64e7903c5f114e292d816.tar.bz2
luasocket-24babecdd34c3b4671f64e7903c5f114e292d816.zip
Updated with new dynamic linking scheme.
Diffstat (limited to 'etc')
-rw-r--r--etc/README24
1 files changed, 9 insertions, 15 deletions
diff --git a/etc/README b/etc/README
index 34b7074..623adf7 100644
--- a/etc/README
+++ b/etc/README
@@ -5,18 +5,17 @@ This directory contains code that is more useful than the examples. This code
5 5
6These are modules to suport dynamic loading of LuaSocket by the stand alone 6These are modules to suport dynamic loading of LuaSocket by the stand alone
7Lua Interpreter with the use of the "require" function. For my Mac OS X 7Lua Interpreter with the use of the "require" function. For my Mac OS X
8system, I place lua.lua in /usr/local/lua, luasocket.lua and the 8system, I place all files in /Users/diego/tec/luasocket
9libluasocket.dylib in /usr/local/lua/luasocket and set the following 9and set the following environment variables:
10environment 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
17With that, I can run any luasocket application with the command line: 16With 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
21Much nicer than having to build a new executable just to initialize 20Much nicer than having to build a new executable just to initialize
22LuaSocket! 21LuaSocket!
@@ -32,7 +31,7 @@ is to test the UDP code, but someone might find it usefull.
32This little program is a client that uses the FTP and HTTP code to 31This little program is a client that uses the FTP and HTTP code to
33implement a command line file graber. Just run 32implement 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
37to download a remote file (either ftp:// or http://) to the specified 36to download a remote file (either ftp:// or http://) to the specified
38local file. The program also prints the download throughput, elapsed 37local 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
45the LuaSocket library and the Lua language. It has not been thoroughly 44the LuaSocket library and the Lua language. It has not been thoroughly
46tested, but it should work. Just run 45tested, 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
50and open the result to see a list of broken links. 49and open the result to see a list of broken links.
51 50
52 cl-compat.lua
53
54This module implements an old (and higher level) interface to SMTP provided
55by the CGILUA toolkit. It runs on top of the LuaSocket SMTP interface.
56
57Good luck, 51Good luck,
58Diego. 52Diego.