-
CP to SMB share problem
I'd like to backup a few configuration files on my Linux system (CentOS 4) to my windows share. Currently the share is permanently mounted into the Linux filesystem via Samba and the /etc/fstab. When I issue the command
cp /source/file/name /destination/file/name
the file copies with no problem. When I put the exact same command in a shell script and run it with ./ I get the error:
CP: Cannot create regular file '/source/file/name /destination/file/name: No such file or directory
The only difference I can think of between my CLI (as root) and the script would be the shell. It turns out my shell was bash and the script was set to #!/bin/sh so I changed it to #!/bin/bash, but it still gave the same error.
I would appreciate any ideas anyone has. Thanks.
-
Can somebody please help me out...I have no idea here...