Do you have a question? Post it now! No Registration Necessary. Now with pictures!
December 15, 2003, 8:46 pm
rate this thread
I am writing a command interpreter that forks sftp/ssh processes and
sends sftp commands via stdin.
The stdout/stderr messages returned are all textual. This is
different than ftp which returns coded messages from the ftp server.
It appears that I must read to /n newlines or to an "sftp>" prompt to
know when the sftp-server response message ends. Then be intelligent
enough to look for a certain textual response such as "Fetching file
.. to file .. " before I continue.
Has anyone had to do this?
- » protocol question - issue with exit-status inside unfinished data stream?
- — Newest thread in » Secure Shell Forum