in reply to Problem with Net::SCP::Expect
I hate to keep mentioning this, but see help with scp error codes and try to use an exact fullpath/filename on the remote target. I may be remembering old software, and maybe they have improved things, but the scp and sftp programs seemed to require a fullpath so as avoid the ambiguities of what the CWD is on the remote.....because you are trying to dump that filename in whatever the CWD is on the remote.....you may not have permissions. Also I'm not sure you can use wildcard * patterns like that in scp, but I may be wrong. You may have to get a dirlist, and loop thru the files 1 at a time, and scp the fullpath/filename. ( or use the -r option for recursive)
|
|---|