views:

41

answers:

1

I have a script that is available on the web, and I want to run it directly by entering its url, instead of downloading it and running later. Is there a way to do it ?

+3  A: 

If you want to run a groovy script from a URL from the command line, you can do the following:

groovy -e 'evaluate( new URL( "http://yoururl.com/yourscript.groovy" ).text )'
tim_yates