Re: Running a clojure script

2012-12-17 Thread Shantanu Kumar


On Monday, 17 December 2012 00:23:08 UTC+5:30, puzzler wrote:
>
> On Sun, Dec 16, 2012 at 10:06 AM, Armando Blancas 
> 
> > wrote:
>
>>  I'm not going out of my way to be pseudonymous, it just seems to be a 
>>> feature of the group. 
>>
>>  
>>>
>>  
>> I thought, Mark asking how to run a script? An usurper!
>>  
>>
>>
> Ah yes.  My understanding of Clojure runs fairly deep, but when it comes 
> to understanding the mundane aspects of how to build and run Clojure and 
> Clojure files from java/maven/etc, I am but a babe in the woods :)   I have 
> my toolchain that works for me (most of the time) and keeps me sheltered 
> from those details, but once I get outside of that, I'm lost.
>

(Disclaimer: shameless plug)

For running Clojure scripts (with dependency support) you can also look at 
lein-exec:

https://github.com/kumarshantanu/lein-exec

Shantanu

-- 
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: Running a clojure script

2012-12-16 Thread Mark Engelberg
On Sun, Dec 16, 2012 at 10:06 AM, Armando Blancas wrote:

>  I'm not going out of my way to be pseudonymous, it just seems to be a
>> feature of the group.
>
>
>>
>
> I thought, Mark asking how to run a script? An usurper!
>
>
>
Ah yes.  My understanding of Clojure runs fairly deep, but when it comes to
understanding the mundane aspects of how to build and run Clojure and
Clojure files from java/maven/etc, I am but a babe in the woods :)   I have
my toolchain that works for me (most of the time) and keeps me sheltered
from those details, but once I get outside of that, I'm lost.

--Mark

-- 
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: Running a clojure script

2012-12-16 Thread Armando Blancas

>
>  I'm not going out of my way to be pseudonymous, it just seems to be a 
> feature of the group. 

 
>
 
I thought, Mark asking how to run a script? An usurper!

-- 
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: Running a clojure script

2012-12-16 Thread Marko Topolnik
On Sunday, December 16, 2012 5:12:36 AM UTC+1, Armando Blancas wrote:

> Why are you using puzzler's account and what did you did to him?!
>

And who, in your opinion, is puzzler, if not Mark Engelberg?
 

-- 
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: Running a clojure script

2012-12-15 Thread Mark Engelberg
Hmmm, looks like googlegroups is stripping out my email address and
replacing it with one of my google account handles.  Probably depends on
what method you are using to view the group messages.  I'm not going out of
my way to be pseudonymous, it just seems to be a feature of the group.

On Sat, Dec 15, 2012 at 8:12 PM, Armando Blancas wrote:

> Why are you using puzzler's account and what did you did to him?!
>

-- 
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: Running a clojure script

2012-12-15 Thread Armando Blancas
Why are you using puzzler's account and what did you did to him?!

On Saturday, December 15, 2012 7:28:56 PM UTC-8, puzzler wrote:
>
> Thanks.  I think that used to be on the Getting Started page, but now the 
> page is just links to info about how to get up and running with IDEs, so I 
> had trouble finding it.
>
>

-- 
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: Running a clojure script

2012-12-15 Thread Mark Engelberg
Thanks.  I think that used to be on the Getting Started page, but now the
page is just links to info about how to get up and running with IDEs, so I
had trouble finding it.

-- 
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: Running a clojure script

2012-12-15 Thread Dave Ray
Yep.

   java -jar clojure.jar hello.clj

Should do the trick. Alternatively,

  java -cp clojure.jar clojure.main hello.clj

Will also work if you need to control the classpath more.

Dave

On Saturday, December 15, 2012, Mark Engelberg wrote:

> Let's say I have a file "hello.clj" that simply contains the line:
> (println "hello, world")
>
> What's the simplest way to run this clojure file?  I'm looking for
> something simpler than setting up a lein project.  Is there something along
> the lines of:
> java clojure.jar hello.clj
> that would actually work?
>
> --
> 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 '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  'clojure%2bunsubscr...@googlegroups.com');>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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