Thanks Michael. Now that I've added (shutdown-agents) my calls to clj -i return to the OS prompt as expected after the loaded code finishes execution, exactly as I wanted without calling System/exit or requiring a keyboard interrupt.
-Lee On Mar 1, 2010, at 3:25 AM, Michael Wood wrote: > On 28 February 2010 21:38, Lee Spector <[email protected]> wrote: > [...] >> - When I run clj (from the most recent ClojureX) on the command line with -i >> and a source file it runs the file but then hangs. If I also specify -r then >> I get a REPL after the file runs, which is nice, but I was hoping that >> without -r it would terminate and return to a shell prompt without requiring >> an interrupt. I don't see any options to clj or to Clojure's main that force >> termination, or any quit or exit functions that I could call myself at the >> end of my code... Am I missing something here? > > I suspect this is happening because you are using agents and you are > not calling (shutdown-agents) at the end of your script. If this is > the case then it should exit by itself after about a minute (without > calling shutdown-agents). > > -- > Michael Wood <[email protected]> > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Lee Spector, Professor of Computer Science School of Cognitive Science, Hampshire College 893 West Street, Amherst, MA 01002-3359 [email protected], http://hampshire.edu/lspector/ Phone: 413-559-5352, Fax: 413-559-5438 Check out Genetic Programming and Evolvable Machines: http://www.springer.com/10710 - http://gpemjournal.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
