Archive

Archive for the ‘Tutorial’ Category

A quick way to transfer files to/from iridis

June 25th, 2010 Comments off

Notes for this page. You can download this file(copy_iridis.zip) and modify the content according to the notes below:

  1. 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 to make it executable::

      • chmod 777 copy_to_iridis
    • The following command will copy the file ‘cm_test.cpp’ from your PC to iridis:
      • ./copy_to_iridis cm_test.cpp
  2. To transfer file/directory from a directory in iridis (create the directory first):
    • Write the following content to file copy_from_iridis
      • scp -r [user_id]@iridis5_a.soton.ac.uk:~/[dir_name] .
      • for example: scp -r sxn@iridis5_a.soton.ac.uk:~/itpp_dir/$1 .
    • Then type the follwing command at a linux prompt to make it executable:
      • chmod 777 copy_from_iridis
    • The following command will copy the directory ‘itpp_dir/cm/’ from iridis to your PC:
      • ./copy_from_iridis cm
  3. You can modify the two scripts according to your need.
Categories: Tutorial Tags: