problem with sftp exit code

From: Alexandre Bossot (powermarmotte_at_free.fr)
Date: 12/23/03


Date: Tue, 23 Dec 2003 19:35:50 +0100

hi allUsing sftp to transfer files, i'd like to get a return code > 0 as
seen in the man page if for example i cant transfer a file using the put
command.

Also used in batch mode sftp should abort if one of the commands in the
input file fails. I've tried and even if a put fail the sft session
continues.

In all cases the sftp session teminates with a retrun code = 0

Any idea to solve my problem ??

Thank's in advance



Relevant Pages

  • Re: sshd and ftpd
    ... I recall that ftp is not as safe as ssh. ... ok Matt I will load sftp and see how that works. ... You can also use scp to transfer files to and from the computers. ... your laptop and transfer files using ssh as the protocol. ...
    (Ubuntu)
  • Re: sftp coming across slow?
    ... When I transfer files via ftp the ... > bandwidth is down to about a quarter or less of the 500k avail. ... Are both systems running Linux? ... various implementations of scp (which is basically what sftp uses). ...
    (RedHat)
  • Re: SSH Authentication question
    ... If you have an option to use to something beside SFTP, ... it is more stable solution compared to writing ... batch scripts to transfer files. ...
    (Security-Basics)
  • OpenSSH SFTP Question.
    ... SFTP command to transfer files from host-a to host-b, ... [cj037@stotslin1 scripts]$ sftp cj037@stotstru01 ...
    (SSH)