SHARE
TWEET

Untitled

a guest Nov 9th, 2012 37 Never
  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
RAW Paste Data
Top