Created
March 24, 2012 21:49
-
-
Save mcroydon/2188358 to your computer and use it in GitHub Desktop.
Basic finger with Lua and Luasocket.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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