我可以知道 unix 中 scp 命令的退出状态吗 [英] can i know abt the exit status of the scp command in unix
本文介绍了我可以知道 unix 中 scp 命令的退出状态吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 scp 命令在 perl 中进行编程时我不得不面对 scp 命令的退出状态
如果你告诉我哪个退出值(除了 0-success,1-error)是为了让我的生活变得简单
while doing the programing in perl with scp command
i am stucked with facing the exit status of scp command
if you tell which exit value(other then 0-success,1-error) is for what my life will be simple
推荐答案
来自这里:
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
这篇关于我可以知道 unix 中 scp 命令的退出状态吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文