![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
文章平均质量分 88
花落剑舞
这个作者很懒,什么都没留下…
展开
-
Linux shell编程
#!/bin/bash#function(int a,intb)#judge operationfunction1(){ #a > b? if [ $1 -gt $2 ]; then echo "hehe" return 0 else echo "oo" return 1 fi }原创 2017-11-29 21:24:07 · 116 阅读 · 0 评论 -
linux expect spawn的用法
命令在功能:我们通过Shell可以实现简单的控制流功能,如:循环、判断等。但是对于需要交互的场合则必须通过人工来干预,有时候我们可能会需要实现和交互程序如telnet服务器等进行交互的功能。而Expect就使用来实现这种功能的工具。首先,要安装expect,linux expect的安装1.安装相应的包 yum install -y tcl tclx tcl-de转载 2017-12-02 08:07:34 · 9747 阅读 · 0 评论