Created
November 27, 2010 13:35
-
-
Save kiy0taka/717897 to your computer and use it in GitHub Desktop.
[OSX] groovy -l 8080 sayserve
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
println "HTTP/1.0 200 OK" | |
"say ${URLDecoder.decode(line.split(' ')[1])}".execute().waitFor() | |
'success' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment