Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2914576
  • 博文数量: 454
  • 博客积分: 4860
  • 博客等级: 上校
  • 技术积分: 6375
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 10:08
个人简介

10年工作经验,专研网站运维。

文章分类

全部博文(454)

文章存档

2017年(11)

2016年(13)

2015年(47)

2014年(36)

2013年(147)

2012年(64)

2011年(136)

发布时间:2013-04-19 16:47:42

#!/bin/bash#test1.shcase $1 instart)echo "Your type is start";;stop)echo "Your type is stop";;reload)echo "Your type is reload";;*)echo "Your should type start or stop or reload";;esac......【阅读全文】

阅读(1722) | 评论(0) | 转发(0)

发布时间:2013-04-18 21:33:00

######     RedHat5.0系统中安装expect   #######1. 查看系统中是否有tcl,tcl用来编译expect[root@localhost ~]# rpm -qa | grep tcl2. 从系统盘中找到expect:/mnt/Server3. 切换到光盘的Server目录:cd /mnt/Server查找所需要的软件[root@localhost Server]# ls | grep expectexpect-5.43.0.........【阅读全文】

阅读(1315) | 评论(0) | 转发(0)

发布时间:2013-04-18 21:31:12

######     RedHat5.0系统中安装expect   #######1. 查看系统中是否有tcl,tcl用来编译expect[root@localhost ~]# rpm -qa | grep tcl2. 从系统盘中找到expect:/mnt/Server3. 切换到光盘的Server目录:cd /mnt/Server查找所需要的软件[root@localhost Server]# ls | grep expectexpect-5.43.0.........【阅读全文】

阅读(1483) | 评论(0) | 转发(0)

发布时间:2013-04-18 09:33:23

#!/bin/bashcat aaa.bbbif[ $? = 0 ];thenecho "The return value is zero"elseecho "It's wrong"fi解释: 之前执行一条命令cat aaa.bbb.如果这条命令成功执行,并且命令没有报错,并且执行完成的话。那么会继续执行下一条命令。......【阅读全文】

阅读(2193) | 评论(0) | 转发(0)

发布时间:2013-04-17 22:21:09

重点:xargs :  作用:将之前命令的结果作为下一个命令的参数,传递给下一个命令。ps -ef | grep vsftp | grep -v grep | awk '{print $2}' | xargs kill -9......【阅读全文】

阅读(1881) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册