quicky about return code of scp?

carl at bl.echidna.id.au carl at bl.echidna.id.au
Sat Jun 9 15:17:46 EST 2001



A quick grovel through scp.c shows me that main() ends with this :

        }
        exit(errs != 0);
}


Am I correct in assuming that this means that if there's no problems (ie: the
scp executes completely, with no errors) that scp's return code is 0?

I need to know if a copy has been successful in a perl script, and the
easiest way to check is to look at the code.

The return code isn't documented in the man page for scp.1

thanks

Carl




More information about the openssh-unix-dev mailing list