** Pastebin PRO Accounts Easter Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


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
  3. ## Script needs to be run with proper privileges so that the SMB share can be mounted properly without prompting for a password.
  5. mount -t cifs //excalibur/smb_share /mnt -o user=simon,pass=SamplePassword
  7. cp /mnt/<files_to_copy> /Path/to/copy/destination
  8. sync
  9. umount /mnt
clone this paste RAW Paste Data