Re: Seemingly simple shell commands taking forever

2012-01-21 Thread techwhizbang
Thanks Phil, that was it exactly. Duly noted!

On Jan 20, 2:28 pm, Phil Hagelberg p...@hagelb.org wrote:
 techwhizbang techwhizb...@gmail.com writes:
  I am using lein run -m to execute a simple database preparation task.
  I issue 2 very simple commands that execute very fast on their on own
  when executed in the shell. They also appear to execute very fast
  based on the print output to stdout. However, the problem is that
  after executing the 2 clojure.java.shell sh commands the process hangs
  on way after it completes. So much so that it feels wrong.

  Here is the gist.https://gist.github.com/1635837

 The agent thread pool is probably keeping the process open. Try calling
 (shutdown-agents) when you're done.

 This is a long-standing known bug/shortcoming in Clojure:

  http://dev.clojure.org/jira/browse/CLJ-124

 -Phil

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Seemingly simple shell commands taking forever

2012-01-20 Thread techwhizbang
I am using lein run -m to execute a simple database preparation task.
I issue 2 very simple commands that execute very fast on their on own
when executed in the shell. They also appear to execute very fast
based on the print output to stdout. However, the problem is that
after executing the 2 clojure.java.shell sh commands the process hangs
on way after it completes. So much so that it feels wrong.

Here is the gist. https://gist.github.com/1635837

PS I stripped down the database credentials so that it would be easily
runnable on anyone's machine so don't bother flaming me for using the
root user.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Seemingly simple shell commands taking forever

2012-01-20 Thread Phil Hagelberg
techwhizbang techwhizb...@gmail.com writes:

 I am using lein run -m to execute a simple database preparation task.
 I issue 2 very simple commands that execute very fast on their on own
 when executed in the shell. They also appear to execute very fast
 based on the print output to stdout. However, the problem is that
 after executing the 2 clojure.java.shell sh commands the process hangs
 on way after it completes. So much so that it feels wrong.

 Here is the gist. https://gist.github.com/1635837

The agent thread pool is probably keeping the process open. Try calling
(shutdown-agents) when you're done.

This is a long-standing known bug/shortcoming in Clojure:

  http://dev.clojure.org/jira/browse/CLJ-124

-Phil

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en