{"id":8440,"date":"2024-11-14T15:59:17","date_gmt":"2024-11-14T15:59:17","guid":{"rendered":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=8440"},"modified":"2024-11-14T15:59:33","modified_gmt":"2024-11-14T15:59:33","slug":"curl","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/tools\/curl\/","title":{"rendered":"Curl and libcurl"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/curl.se\">Curl and libcurl<\/a> curl is used in command lines or scripts to transfer data. curl is also libcurl, a transfer engine used by other apps.<\/p>\n<p>The system-wide default (no modulefile required) is v7.29.0. Version 7.88.1 is available via a modulefile (see below.)<\/p>\n<h2>Restrictions on use<\/h2>\n<p>The are no restrictions on accessing this software on the CSF.<\/p>\n<h2>Set up procedure<\/h2>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this. Alternatively, you may load modulefiles on the login node and let the job <abbr title=\"add '#$ -V' to your jobscript\">inherit these settings<\/abbr>.<\/p>\n<p>Load one of the following modulefiles:<\/p>\n<pre>\r\nmodule load tools\/gcc\/curl\/7.88.1\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Downloads should be performed from compute nodes, either in batch or via an <a href=\"batch\/qrsh\">interactive session<\/a> (started with <code>qrsh<\/code>.) <\/p>\n<p>When compiling other applications that require libcurl, the modulefile will setup environment variables that most compilers will use to find the header and library files.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Create a batch submission script (which will load the modulefile in the jobscript), for example:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n                    # NO -V line - we load modulefiles in the jobscript\r\n\r\nmodule load tools\/gcc\/curl\/7.88.2\r\n\r\ncurl <em>https:\/\/remote.address\/path<\/em>\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"https:\/\/curl.se\">Curl website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Curl and libcurl curl is used in command lines or scripts to transfer data. curl is also libcurl, a transfer engine used by other apps. The system-wide default (no modulefile required) is v7.29.0. Version 7.88.1 is available via a modulefile (see below.) Restrictions on use The are no restrictions on accessing this software on the CSF. Set up procedure We now recommend loading modulefiles within your jobscript so that you have a full record.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/tools\/curl\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":144,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8440","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/8440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=8440"}],"version-history":[{"count":1,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/8440\/revisions"}],"predecessor-version":[{"id":8441,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/8440\/revisions\/8441"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/144"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=8440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}