Cutts III, James H. wrote:

> However, I've been unsuccessful in getting the suggestions of the ->quot
> and ->site commands
> to work. I've copied the relevant sections of the Perl code below as
> well as the generated
> output.

...

> Output results:

...

> ftp->site( 'chgrp cori /home/cuttsj/play/ftp_test.pl' ) <== per $Bill
> Luebker 2002-02-13->message = '1'
>       ->code = (500) 'Syntax error, command unrecognized'
>       ->ok = ''
>       $rc=5

You might want to turn Debug on in FTP to see if you can get more info.
It may be that the server hasn't implemented chgrp.
$ftp->debug(1);

> ftp->quote( 'site', 'chmod 0755 /home/cuttsj/play/ftp_test.pl'
> )->message = '1'
>       ->code = (550) 'Requested action not taken; file unavailable
> (e.g., file not found, no access)'
>       ->ok = ''
>       $rc=5

No syntax error here - maybe the debug will help here too.
Another thing you could try is a cd to the proper dir and drop the path
on the chmod.

I would think you're already in /home/cuttsj, so
$ftp->cwd('play');
$ftp->site('chmod 0755 ftp_test.pl');

I avoid paths on FTP whenever possible.

> As you see, I'm getting "Syntax error, command unrecognized" on the
> chgrp command, and effectively 
> a "file not found" error on the "chmod" file.  I'm beginning to wonder
> if the problem may be with the 
> vsftpd FTP daemon I'm using on my RH Linux box.  Does this FTP server
> not support the chmod / chgrp 
> commands?  If any one out there has experience with Linux FTP servers
> and would like to comment on 
> this, I'd appreciate your input before I cross post this plea for help
> to my Linux lists.

Have you checked the server to see what site commands it honors ?
Connect using ftp and type rhelp or remotehelp (depending on client)
and site (my output to my Linux website server) :

ftp> rhelp site
214-HELP
 CHGRP
214 CHMOD

> P.S. $Bill - I found a response from you in the archives from 2002 that
> I have included in my test code.

Anything that old should be taken with a grain of salt.

> P.S.S. (Way off topic) Does anyone know how to get Outlook to do a
> decent job of creating nicely 
> formatted 80 character long message lines without it automatically
> capitalizing the first word 
> after the carriage return and to use the ">" for the replied text?

That's PPS and if I were you I'd switch to a decent email client.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to