Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-03-2007 #1Linux Newbie
- Join Date
- May 2007
- Posts
- 106
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.
- 10-07-2007 #2Linux Newbie
- Join Date
- May 2007
- Posts
- 106
Can somebody please help me out...I have no idea here...


Reply With Quote
