Skip to content

Instantly share code, notes, and snippets.

@mcroydon
Created March 24, 2012 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcroydon/2188358 to your computer and use it in GitHub Desktop.
Save mcroydon/2188358 to your computer and use it in GitHub Desktop.
Basic finger with Lua and Luasocket.
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> local socket = require("socket")
> client = socket.tcp()
> client:connect("mit.edu", 79)
> client:send("\r\n")
> print(client:receive("*a"))
Student data loaded as of Mar 24, Staff data loaded as of Mar 24.
Notify Personnel or use WebSIS as appropriate to change your information.
Our on-line help system describes
How to change data, how the directory works, where to get more info.
For a listing of help topics, enter finger help@mit.edu. Try finger
help_about@mit.edu to read about how the directory works.
Directory bluepages may be found at http://mit.edu/communications/bp.
Did not understand query.
nil nil 2.3126602172852e-05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment