Advertisement
Guest User

Untitled

a guest
Nov 9th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement