Created
February 9, 2010 07:36
-
-
Save nathell/298998 to your computer and use it in GitHub Desktop.
A handy Expect script for starting Clojure and Swank.
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
#!/usr/bin/expect -f | |
set cp [regsub -all { } [glob *] {:}] | |
spawn java -cp $cp:/home/nathell/programs/clojure/clojure-1.1.0.jar -Xmx4096M -server -Xms4096M clojure.main | |
expect "user" | |
send "(require 'swank.swank)\r" | |
expect "user" | |
send "(defn swank \[\] (swank.swank/start-server \"/dev/null\" :port 4005))\r" | |
send "(swank)\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment