{"id":178,"date":"2010-06-25T13:51:56","date_gmt":"2010-06-25T12:51:56","guid":{"rendered":"http:\/\/users.ecs.soton.ac.uk\/sxn\/blog\/?p=178"},"modified":"2022-11-01T01:04:03","modified_gmt":"2022-11-01T01:04:03","slug":"a-quick-way-to-transfer-files-tofrom-lyceum","status":"publish","type":"post","link":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/2010\/06\/25\/a-quick-way-to-transfer-files-tofrom-lyceum\/","title":{"rendered":"A quick way to transfer files to\/from iridis"},"content":{"rendered":"<p>Notes for <a href=\"?page_id=152\">this page<\/a>. <span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">You can download this file(<\/span><\/span><a href=\"https:\/\/www.southampton.ac.uk\/~sxn\/itpp\/copy_iridis.zip\"><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">copy_iridis.zip<\/span><\/span><\/a><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">) and modify the content according to the notes below:<\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">To transfer file\/directory to a directory in iridis (create the directory first):<br \/>\n<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">Write the following content to file copy_to_iridis<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">scp -r $1 [user_id]@iridis5_a.soton.ac.uk:~\/[dir_name]<\/span><\/span><\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">for example: scp $1 sxn@iridis5_a.soton.ac.uk:~\/itpp_dir\/ <\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\"> Then type the follwing command at a linux prompt to make it executable::<br \/>\n<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">chmod 777 copy_to_iridis<\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">The following command will copy the file &#8216;cm_test.cpp&#8217; from your PC to iridis:<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">.\/copy_to_iridis cm_test.cpp<\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">To transfer file\/directory from a directory in iridis (create the directory first):<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">Write the following content to file copy_from_iridis<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">scp -r [user_id]@iridis5_a.soton.ac.uk:~\/[dir_name] . <\/span><\/span><\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">for example: <\/span><\/span><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">scp -r sxn@iridis5_a.soton.ac.uk:~\/itpp_dir\/$1 .<\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\"> Then type the follwing command at a linux prompt to make it executable:<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">chmod 777 copy_from_iridis<\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">The following command will copy the directory &#8216;itpp_dir\/cm\/&#8217; from iridis to your PC:<\/span><\/span>\n<ul>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">.\/copy_from_iridis cm <\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><span style=\"font-family: Times New Roman,serif\"><span style=\"font-size: small\">You can modify the two scripts according to your need. <\/span><\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Notes for this page. You can download this file(copy_iridis.zip) and modify the content according to the notes below: To transfer file\/directory to a directory in iridis (create the directory first): Write the following content to file copy_to_iridis scp -r $1 [user_id]@iridis5_a.soton.ac.uk:~\/[dir_name] for example: scp $1 sxn@iridis5_a.soton.ac.uk:~\/itpp_dir\/ Then type the follwing command at a linux prompt [&hellip;]<\/p>\n","protected":false},"author":3109,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/users\/3109"}],"replies":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":4,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":2068,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/posts\/178\/revisions\/2068"}],"wp:attachment":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/sxn\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}