![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
shihuan830619
J2EE程序员.
展开
-
shell脚本编程
例1: 用vi编辑文件echodate输出系统日期[root@testgitlab opt]# vi echodate#%Y#%m#%decho `date +%Y%m%d`保存并退出。 [root@testgitlab opt]# sh ./echodate20160125或者[root@testgitlab opt]# chmod 755 e...原创 2016-01-26 00:13:31 · 107 阅读 · 0 评论 -
java调用shell脚本
附件java执行shell.rar里是已经下载好的jar包。http://www.jcraft.comhttp://www.jcraft.com/jsch/examples/https://en.wikipedia.org/wiki/Expecthttps://github.com/cverges/expect4j可以到maven里搜索expect4j...原创 2016-01-26 00:53:29 · 190 阅读 · 0 评论