Re: shell process hangs in REPL

2011-05-16 Thread Wei Hsu
Just to close out this thread, my workaround was to use Clojure to generate a shell script which I then ran manually from the command line. On May 15, 8:40 am, Wei Hsu yayits...@gmail.com wrote: Thanks Meikel, I am using leiningen and that works beautifully! So, I'm pretty sure it's a memory

Re: shell process hangs in REPL

2011-05-15 Thread Meikel Brandmeyer
Hi, Am 15.05.2011 um 07:12 schrieb Wei Hsu: I'm using vimclojure and nailgun. A general note: The vimclojure shell blocks until the whole command is completed accumulating all output on the way. This is for technical reasons, I can't anything about. Please use it only for short interactions

Re: shell process hangs in REPL

2011-05-15 Thread Wei Hsu
Thanks for the tips. Alan, I'm now using clojure.java.shell (still hanging, though). Could you explain the difference between the two? Meikel, what are the commands to start an external repl and tie it with nailgun? Can I interact with nailgun with both the external repl and the vim repl? On May

Re: shell process hangs in REPL

2011-05-15 Thread Alan
My understanding is that the contrib version graduated into core at some point (in the clojure.java.shell namespace) and its old name is only still around for backwards compatibility. On May 15, 12:31 am, Wei Hsu yayits...@gmail.com wrote: Thanks for the tips. Alan, I'm now using

Re: shell process hangs in REPL

2011-05-15 Thread Meikel Brandmeyer
Hi, Am 15.05.2011 um 09:31 schrieb Wei Hsu: Meikel, what are the commands to start an external repl and tie it with nailgun? Start the external repl via eg. java -cp your-classpath-here-including-the-vimclojure-jar clojure.main -r. Or via lein repl, if you use leiningen. Then enter the

shell process hangs in REPL

2011-05-14 Thread Wei Hsu
I have a process which runs fine in my bash terminal, but hangs when I run it using clojure.contrib.shell-out/sh in the REPL. Any tips on how to debug this? Would it be a memory issue, or something else? in bash: ./wkhtmltopdf --footer-html footer.html --encoding UTF-8 http://[really long web

Re: shell process hangs in REPL

2011-05-14 Thread Alan
As an aside, clojure.java.shell is what you should be using, not clojure.contrib.shell-out. On May 14, 10:12 pm, Wei Hsu yayits...@gmail.com wrote: I have a process which runs fine in my bash terminal, but hangs when I run it using clojure.contrib.shell-out/sh in the REPL. Any tips on how to