Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 9th, 2012  |  syntax: Bash  |  size: 0.29 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. ## Script needs to be run with proper privileges so that the SMB share can be mounted properly without prompting for a password.
  4.  
  5. mount -t cifs //excalibur/smb_share /mnt -o user=simon,pass=SamplePassword
  6.  
  7. cp /mnt/<files_to_copy> /Path/to/copy/destination
  8. sync
  9. umount /mnt
clone this paste RAW Paste Data