Bingo! That helped me see that it was my date being set to "xx/xx/xx" which of course was seen as directories within the script. I changed for date format to "xx-xx-xx" and the problem is solved.

Thanks again for your help.

Mark


On Apr 28, 2004, at 8:48 PM, Sherm Pendley wrote:

On Apr 28, 2004, at 11:32 PM, Mark Wheeler wrote:

copy ("$dirfrom$dbpath[$i]/$dbname[$i]", "$dirto$backup") or warn "Can't copy file: $dbname[$i] - $!\n";

You might want to try a more verbose error message, like:

warn "Can't copy file $dirfrom$dbpath[$i]/$dbname[$i] to $dirto$backup - $!\n";

That would verify that it's trying to copy what you think it's trying to copy.

sherm--




Reply via email to