Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

UNIX scp script

  1. Jun 30, 2008 #1
    how exactly would i go about writing a UNIX script that copies files from my Mac OS Desktop to a folder in another computer cluster? i'd need to scp the files from my desktop to the folder, but the cluster is password protected. any help?
  2. jcsd
  3. Jun 30, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

  4. Jul 1, 2008 #3
    If you're looking to transfer files one time only, scp is your best bet. If you're regularly going to transfer files in this way (for instance, you may want to back up your work to another computer over the network, or perhaps you want to copy from your Mac to a server so that the work is available to other users) then I'd use rsync.
  5. Jul 5, 2008 #4
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook