Hi.

[EMAIL PROTECTED] wrote:
>
> I am trying to use the NET::FTP module to recursively chmod files.
> Either of these two ways of telling the server to chmod it seem to work:
>
> $ftp->command("SITE CHMOD 755 $file");
> or
> $ftp->quot("SITE CHMOD 755 $file");

I've never tried this, but the POD for my installation of Net::FTP
doesn't mention a 'command' method, and for 'quot' it says:

        WARNING This call should only be used on commands that do not
        require data connections. Misuse of this method can hang the
        connection.

> ...but once that runs once, even successfully, $ftp->pwd() returns an
> empty string afterwards, and no files are found if I cwd to valid
> directories.
>
> I know the FTP section is working right, I can watch it run through
> every file and folder in the cgi-bin recursively, *if* I comment out the
>   CHMOD line.
>
> If I leave that line active, it does CHMOD everything in the base dir,
> but can't cwd after the first CHMOD.
>
>   Does anyone have any ideas of why this may be happening?

There is a 'site' method. Again I've never used it, but as a long shot
you might try:

  $ftp->site("CHMOD 755 $file");

or variations on that.

Sorry I can't help further.

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to