码迷,mamicode.com
首页 > 其他好文 > 详细

ssh user@hostname "command" ;echo “aaa”$?

时间:2014-05-03 23:26:39      阅读:526      评论:0      收藏:0      [点我收藏+]

标签:com   name   os   user   c   man   

ssh user@hostname "command" ;echo “aaa”$?

输出aaa0,表示 ssh命令成功。

输出aaa2555,表示ssh连接失败。

若ssh成功,命令失败,则aaa127.

ssh user@hostname "command" ;echo “aaa”$?,布布扣,bubuko.com

ssh user@hostname "command" ;echo “aaa”$?

标签:com   name   os   user   c   man   

原文地址:http://www.cnblogs.com/xaf-dfg/p/3705068.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!