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

时间:2014-05-03 23:26:39   收藏:0   阅读:526

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

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

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

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

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!