Hi list
i'm trying to use sftp in a script but i always get an exit code 0 even if one of the sftp commands fails.
I'd like to stop the job if, for exemple i cant create a remote directory.
Looking to the man pages of sftp i've also tried in batchmode and all failing command should abort the sftp session but it doesn't seem to work.
Any idea to solve my problem ??
i'm trying to use sftp in a script but i always get an exit code 0 even if one of the sftp commands fails.
I'd like to stop the job if, for exemple i cant create a remote directory.
Looking to the man pages of sftp i've also tried in batchmode and all failing command should abort the sftp session but it doesn't seem to work.
Any idea to solve my problem ??