Re: Which Net::FTP method for this?"
am 08.11.2005 00:54:00 von 1usamailbox@cpacker.org wrote in news:1131399394.984937.72150
@g43g2000cwa.googlegroups.com:
> I have a requirement that before data are sent to the remote host, an
> arbitrary series of commands may have to be issued. Typically only a
> "cd" to the destination directory will be issued, but sometimes there
> will be other stuff, such as "umask", "sunique", and the like. For the
> first version of my product, I got by with doing the "cd" using the
> "cwd" method. But now the customer is breathing down my neck about the
> complete implementation.
If you are trying to get others' help with your paid job, you'll have to
do a better job of asking for it. Please see the posting guidelines for
this group for valuable information on how to help yourself, and help
others help you.
> All I see in the documentation for Net::FTP on
> the CPAN Web site (perldoc hasn't been installed on our system)
Why not?
> is the method "quot" to handle an arbitrary command, and it doesn't
> want to do a "cd". I got it to do quot("site umask 022") and it
> returned a status of 2. When I tried quot("cd somedirectory"),
> though, it returned a status of 5 and didn't do the cd. I don't
> know what the status return codes mean. How should I proceed from
> here?
Some thoughts:
* Read the FTP RFC
* Turn Net::FTP debugging on.
* Do read the docs carefully:
http://search.cpan.org/~gbarr/libnet-1.19/Net/FTP.pm:
quot (CMD [,ARGS])
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines .html