Skip to content

Instantly share code, notes, and snippets.

@mcroydon
Created March 24, 2012 21:49

Revisions

  1. mcroydon created this gist Mar 24, 2012.
    19 changes: 19 additions & 0 deletions finger.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    $ 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