sftp != ftp

I don't think there are response codes, like you are talking about.

SFTP was created as an example of an external service.  So, bearing that
in mind, I think these are error messages as it comes from STDERR from
the sftpd binary.

On 12 Apr 2007 17:47:40 -0000, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Is there a way to receive "sftp status codes" as part of the sftp command 
response message on stdout, when an sftp command is issued on stdin.

For instance: Issuing the "get" command interactively to an ftp server, I 
receive the following response on stdout:

550 filename: No such file or directory.

The same command sent to an OpenSSH sftp server receives the following response:

Couldn't stat remote file: No such file or directory. File "/local/abbb/foo" 
not found.

I need to programmatically extract the status code off the stdout output.  However, I 
haven't found a way to get the "status code" in stdout.

Does anyone know of a way to get the "sftp status codes" sent to stdout, like 
ftp servers do?

I have tried Verbose and Debug options.





--
And, did Galoka think the Ulus were too ugly to save?
                                        -Centauri

Reply via email to