in reply to Re: Error checking on system SCP
in thread Error checking on system SCP

I'm not sure I follow.

I'm just giving it junk on the path. I want it to fail. I'm trying to test my error checking.

The problem is, I haven't gotten the code to trigger the error checking, because my test for whether or not the SCP was successful always says that it was, even if it wasn't.

Replies are listed 'Best First'.
Re^3: Error checking on system SCP
by turo (Friar) on Dec 14, 2005 at 20:38 UTC

    Umm (sorry, i must improve my english skills ...)

    "I'm just giving it junk on the path." It seems to be the problem. You must pass a well formed path (user@(dns-name|ip-address):/path/to/somewhere), or scp will acts as a simple 'cp' or copy.

    try this errors:

    • dns name does not exist
    • host is down
    • target directory does not exist
    • user incorrect (you must pass the password)



    Regards

    turo

    perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'