{"id":7330,"date":"2012-09-07T02:30:18","date_gmt":"2012-09-06T21:00:18","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=7330"},"modified":"2016-12-19T14:49:54","modified_gmt":"2016-12-19T09:19:54","slug":"grails-console-execute-from-file","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/grails-console-execute-from-file\/","title":{"rendered":"Grails Console, execute from file."},"content":{"rendered":"<p><a href=\"http:\/\/grails.org\/plugin\/console\">Grails Console<\/a> is one of the most useful plugins available, it provides a console to application to which it&#8217;s installed. This plugin can be used to test code snippets amazingly fast, debug app, create patches and scripts.<br \/>\n<br \/>\nAnd the latest update has made it even more fantastic. Now it has an option to execute code from a file. All one needs to do is specify the path and it will run code snippet from that file. Now this is  of extreme use because, I used to store my scripts in files for later use. And now I don\u2019t have to copy paste code every time, I can just specify absolute path of the file and it will do rest for me.<br \/>\n<br \/>\nSample Image below shows path of the file as \u201c\/home\/hitesh\/scriptFile\u201d this is the file with the code.<br \/>\nAnd on the right side, the output screen shows code that was in file and its output below.<br \/>\n<\/p>\n<div>_________________________________<\/div>\n<div>Hitesh Bhatia<br \/>\n<a href=\"mailto:hitesh@intelligrape.com\" target=\"_blank\">Mail<\/a> LinkedIn,<a href=\"http:\/\/www.facebook.com\/home.php?#%21\/profile.php?id=100000114437286\" target=\"_blank\">Facebook<\/a>,<a href=\"http:\/\/twitter.com\/d1_ricky\" target=\"_blank\">Twitter<\/a><br \/>\n_________________________________<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Grails Console is one of the most useful plugins available, it provides a console to application to which it&#8217;s installed. This plugin can be used to test code snippets amazingly fast, debug app, create patches and scripts. And the latest update has made it even more fantastic. Now it has an option to execute code [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":7},"categories":[7],"tags":[949,813,950,4840,327],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/7330"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=7330"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/7330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=7330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=7330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=7330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}