Ah, thanks -- (System/exit 0) will be useful. I'm beginning to realize I have to be looking in the Java library docs rather than the Clojure docs for some things like this. That this works implies that there's an implicit import of java.lang.System, available as System/. Am I thinking about this right and if so what else is implicitly imported?
Thanks, -Lee On Feb 28, 2010, at 10:23 PM, cej38 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? >> > > When I run clojure as a script, I use the following command to > terminate the clojure instance: > (System/exit 0) > > -- > 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 -- Lee Spector, Professor of Computer Science School of Cognitive Science, Hampshire College 893 West Street, Amherst, MA 01002-3359 lspec...@hampshire.edu, 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 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