when doing programming in perl with the scp command, I was stuck in the face of the scp command exit statusif you say what the output value is (different, then 0-success, 1-error) so that my life will be simple
From here :
0 Operation was successful 1 General error in file copy 2 Destination is not directory, but it should be 3 Maximum symlink level exceeded 4 Connecting to host failed. 5 Connection broken 6 File does not exist 7 No permission to access file. 8 General error in sftp protocol 9 File transfer protocol mismatch 10 No file matches a given criteria 65 Host not allowed to connect 66 General error in ssh protocol 67 Key exchange failed 68 Reserved 69 MAC error 70 Compression error 71 Service not available 72 Protocol version not supported 73 Host key not verifiable 74 Connection failed 75 Disconnected by application 76 Too many connections 77 Authentication cancelled by user 78 No more authentication methods available 79 Invalid user name
reference: scp return codes
0 .
Source: https://habr.com/ru/post/1709304/More articles:Geneva STS, Java interop - javaReading multiple XML documents from a socket in java - javaFree tool to convert XSD to HTML - htmlIs it recommended to use the same dimension sizes in Oracle table spaces? - databaseWCF MSMQ Callback Function - callbackAwkward DAO Manipulation Problem - sqlHow can I make a column valid or unique sequential - sqlHow to make the Silverlight Custom Control property data-bound? - data-bindingJava JList update using BeanBinding Netbeans - javaIPhone memory management didReceiveMemoryWarning - memory-managementAll Articles