[Ssh-sftp-perl-users] Stuck
Brought to you by:
dbrobins
From: Troy B. <tro...@un...> - 2006-08-17 19:31:47
|
I have a perl SFTP script that everything seems to work except for when I try to set permissions on a remote file.. Here is my sample code: ... $a = Net::SFTP::Attributes->new; $a->perm(755); foreach $item (@filelist) { $dest = "/tmp/$item"; $confirm = $ftp->put($item,$dest); $ftp->do_setstat($dest, $a); print "Confirm: put $locl to $dest\n"; the file gets put over but the permissions are not changed. Any help would be greatly appreciated.. thanks troy |