sftp solution requires return codes

Posted on 2006-05-25
Last Modified: 2008-02-01
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.

Question by:Netstore
    LVL 12

    Accepted Solution

    scp should work
    LVL 34

    Expert Comment

    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.
    LVL 5

    Author Comment

    Cheers looks like scp will cause the least grief.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now