I mixed responses in [EMAIL PROTECTED] wrote on 12/17/2005 03:05:12 PM:
> When replying, please edit your Subject line so it is more specific > than "Re: Contents of ActivePerl digest..." > > > Today's Topics: > > 1. RE: Setting File and Directory Group and Permissions via > Net::FTP (Cutts III, James H.) > 2. Re: Setting File and Directory Group and Permissions via > Net::FTP ($Bill Luebkert) > > > ------------------------------ > > Message: 2 > Date: Sat, 17 Dec 2005 08:02:24 -0800 > From: "$Bill Luebkert" <[EMAIL PROTECTED]> > Subject: Re: Setting File and Directory Group and Permissions via > Net::FTP > To: "Cutts III, James H." <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > 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. the times my compiler has issues that disagree with Bill's, it's always been something he sets in environment that I dont set there, that is suppossed to be set, according to the package. I now add the debugger before going to the list knowing if it happens I'll finding very fast for him to diagnose > > 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. agreed. unless you're in a company using it for program creation, itis the single most destructive program you can load. most viruses and trojans are kinder. it's really only good for its original purpose: speeding up code design and development switching a SECURED network. i stress secured because it has very little, if any, inherent security. it's also got more exploits than they've been able to handle, and any patch ever made fixes nothing. it merely changes how to access the exploit. mozilla thunderbird is a strong free client and what I use at home. > > > ------------------------------ > > _______________________________________________ > ActivePerl mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > End of ActivePerl Digest, Vol 23, Issue 38 > ****************************************** _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
