CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Net::FTP chmod not working on solaris 11



Sep 11, 2014, 8:50 AM

Post #1 of 1 (5357 views)
Net::FTP chmod not working on solaris 11 Can't Post

I have a script that uses Net::FTP to ftp files between servers and it also performs a chmod on the files so they will have the correct permissions. We recently upgraded one of our servers to solaris 11 and the chmod no longer works on that server. It appears that the return code is a '5' when the chmod fails. The script also does not recognize that the chmod is not working for some reason. I'm running perl 5.12.5. Has anyone encountered this and come up with a solution? Here's the code snippet of the chmod:

$ftp->site("chmod 744 $filename") or $err=1;
if ($err) {
push @ERRORS, "Cannot chmod file $!\n";
myerr() if $err;
return 1;



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives