in reply to chmod of an FTP transfer via perl

I haven't tried it yet but you should be able to use the quot method to perform a chmod.

Replies are listed 'Best First'.
Re: Re: chmod of an FTP transfer via perl
by blue_cowdawg (Monsignor) on Aug 18, 2003 at 14:30 UTC

    Tried quot, didn't work... tried SITE as suggested by Elian and it worked.


    Peter @ Berghold . Net

    Sieze the cow! Bite the day!

    Nobody expects the Perl inquisition!

    Test the code? We don't need to test no stinkin' code!
    All code posted here is as is where is unless otherwise stated.

    Brewer of Belgian style Ales

      Yep. I tested it a few minutes ago and confirmed that $ftp->quot('chmod', "$perms $file"); doesn't work as I thought it would. I'm glad to see that site does work.