
Untitled
By: a guest on
Nov 9th, 2012 | syntax:
Bash | size: 0.29 KB | hits: 37 | expires: Never
#!/bin/bash
## Script needs to be run with proper privileges so that the SMB share can be mounted properly without prompting for a password.
mount -t cifs //excalibur/smb_share /mnt -o user=simon,pass=SamplePassword
cp /mnt/<files_to_copy> /Path/to/copy/destination
sync
umount /mnt