The line for PSCP I am using is
pscp -scp -2 -pw %PDUPW% %curfileloc%\devices\%PDUName%\%PDUName%p15.p15 %PDUUser%@%PDUIP%:/ssl/%PDUName%.p15
What I am looking to do is if the file fails to upload to write to some log file which units the upload failed to