{"id":2358,"date":"2010-02-27T09:09:31","date_gmt":"2010-02-27T08:09:31","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=2358"},"modified":"2010-02-27T09:09:31","modified_gmt":"2010-02-27T08:09:31","slug":"command-line-mathematica-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=2358","title":{"rendered":"Command line Mathematica on Mac OS X"},"content":{"rendered":"<p>On a Linux machine with a normal install of Mathematica you can usually get access to a command line version of Mathematica by typing<\/p>\n<pre>math<\/pre>\n<p>at the command line.\u00a0 Command line Mathematica is useful for situations where you want to do batch processing, perhaps as part of a <a href=\"http:\/\/www.cs.wisc.edu\/condor\/\">Condor pool<\/a> or something, but I&#8217;ll not write about that until another time.<\/p>\n<p>On a Mac, however, a standard install of Mathematica doesn&#8217;t give you a <strong>math<\/strong> command so you have to create it yourself.\u00a0 Add the following line to your system&#8217;s <strong>\/etc\/bashrc<\/strong> file.<\/p>\n<pre>alias math=\"\/Applications\/Mathematica.app\/Contents\/MacOS\/MathKernel\"<\/pre>\n<p>Now, when you type <strong>math<\/strong> at the command prompt it will behave just like a Linux system which is sometimes useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a Linux machine with a normal install of Mathematica you can usually get access to a command line version of Mathematica by typing math at the command line.\u00a0 Command line Mathematica is useful for situations where you want to do batch processing, perhaps as part of a Condor pool or something, but I&#8217;ll not [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[26,8],"tags":[],"class_list":["post-2358","post","type-post","status-publish","format-standard","hentry","category-mac-os-x","category-mathematica"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-C2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2358"}],"version-history":[{"count":3,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2358\/revisions"}],"predecessor-version":[{"id":2361,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2358\/revisions\/2361"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}