[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

sftp solution requires return codes

Hi,
I am currently implementing an ftp solution to a 3rd party via scripting. Normally I would ncftpput / ncftpget as this allows the interrogation of returnm codes, however in this instance the transfer must be encrypted. Is there any equivalent using sftp i.e. sftpput.

Or can anyone suggest any other tools that may be applicable.

It is worth mentioning we only have access our side of the net work and have no control over the server we are pulling from.

Any help greatly appreciated.

Cheers
0
Netstore
Asked:
Netstore
1 Solution
 
Heem14Commented:
scp should work
0
 
PsiCopCommented:
You can script sftp, using the -b option, as I recall. However, its ability to return error codes is very limited.

scp is probably the better way to go.
0
 
NetstoreAuthor Commented:
Cheers looks like scp will cause the least grief.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now