That probably happens because Net::SFTP::Foreign is not able to change the permissions of the file.
Try as follows:
$sftp->put($file, $dest, copy_perm => 0, copy_time => 0)
or die $sftp->error;
you don't really need to use nohup, just redirect the IO channels of the remote process to /dev/null:
ssh foo@host '/remote/command </dev/null >/dev/null 2>&1 &'
Hi, I am the author of Net::SFTP::Foreign.
It seems that the server you are connecting to, doesn't like the way Net::SFTP::Foreign transfers files. Could you provide me with more details about the server in order to set a workaround in place (OS, SSH sofware vendor and versions)?
Also, set the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.