|
Please, can anyone give me an example code for sftp's open, ...read and ...write functions? Im not able to figure out how to use them...
By the way, to create a file on remote host, that does NOT exist, I use:
$sftp->open("myfile.tmp", O_RDWR | O_CREATE) or die "open failed: ($!) (", $s2->error, ") (", $sftp
+->error, ")\n"; but script fails with:
open failed: (Resource temporarily unavailable) (-31LIBSSH2_ERROR_SFTP_PROTOCOLFailed opening remot
+e file) (2SSH_FX_NO_SUCH_FILE)
What's the problem here?
Thanks for your answers
|