码迷,mamicode.com
首页 > 系统相关 > 详细

shell中使用while循环ssh读取一行纪录

时间:2015-03-16 16:40:22      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

cat 33.txt |while read LINE
do
  result=`ssh -n root@192.168.0.101 date`
  echo $result
done


   -n 


  

shell中使用while循环ssh读取一行纪录

标签:

原文地址:http://my.oschina.net/7shell/blog/387529

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