M
mailbox
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. All I see in the documentation for Net::FTP on
the CPAN Web site (perldoc hasn't been installed on our system) 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?
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. All I see in the documentation for Net::FTP on
the CPAN Web site (perldoc hasn't been installed on our system) 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?