« Tech Tip: Deploying Mitel IP Phones in a VLAN/DHCP Environment | Main | Unhappy surprise: Firebird SQL's backup/restore uses magic words for stdin and stdout »

May 30, 2012


s h

cant this issue be gotten around by simply using PSCP instead, which does return errorlevel of zero only if successful?

PSCP returns an ERRORLEVEL of zero (success) only if the files were correctly transferred.

[Not all SFTP servers are configured to allow SCP, and the two unrelated servers I was working with were of this type, and were not something I could change -- SJF]

ios developers

The developer of rssh quit the development of rssh two years ago. I wouldn’t recommend to use rssh since security issues won’t be fixed. Better use scponly…


Thanks for the patch. I have similar problem and your patch helped me.


I worked around this by having the last step of my command file execute a local command to create an empty local file. My script that calls psftp then checks for that file.


i have the similar problem. Can you please tell me how to use this patch.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)


  • Steve Friedl is a software and network security consultant in Southern California. He has been a C and UNIX developer since 1981 and has an exceptionally broad background in this area. Some areas of expertise include:

    • C and C++ systems software development on the UNIX and Win32 platforms
    • Communications, including serial and TCP/IP based controllers
    • Enterprise internet security administration and configuration
    • Penetration tests, audits, and network reviews
    • Security forensics, reverse engineering, and tools development
    • General UNIX and Windows system/network administration
    • The Windows Printing System
    • Database software development
    • Technology problem solving and research
    • Technical writing and standup training

Unix Wiz

Stephen J. FriedlSoftware ConsultantOrange County, CA USASteve@unixwiz.net