易截截图软件、单文件、免安装、纯绿色、仅160KB

linux shell 交换式登录

使用的脚步有四个:【backup_unasyn.sh          //备份所以执行的脚步
                    host_ip.sh                //循环捕捉我服务器的ip进行
                    db_china.sh              //服务器的hosts名
                    passwds.sh               //登录服务器使用的密码
                   】
服务器结构:
IP1:113.11.226.112    IP2:113.11.226.113~116         IP3:113.11.226.118
IP1:执行脚本服务器【back_unasyn.sh、host_ip.sh、db_china.sh、passwds.sh】
Ip2:要备份的服务器
IP3:数据存放服务器
脚步展示如下所示:
[root@data ~]# vi passwds.sh
#!/bin/bash
pw1=123456
pw2=654321
============================================
[root@data ~]# vi host_ip.sh
#!/bin/bash
hosts=(
#china
113.11.226.113
113.11.226.114
113.11.226.115
113.11.226.116
)
==================================
[root@data ~]# vi db_china.sh
#!/bin/bash
#get the sh file.
shfile=$1
#set the script file path.
thepath=/root
date=`date +%Y%m%d`
source /root/host_ip.sh
source /root/passwds.sh
#set the update files.
servers=(
china1_db
china2_db   //host名称对应ip
china3_db
china4_db
)
for i in ${servers[*]}
do
${thepath}/${shfile} ${i} $pw1 $pw2 $date $hosts  
done
=====================================
[root@data ~]#vi backup_unasyn.sh
#!/usr/bin/expect
set host  &nb


相关文档:

实战Linux Bluetooth编程(三) HCI层编程

1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI)  就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......

LINUX 自启动管理

前言
linux有自己一套完整的启动体系,抓住了linux启动的脉络,linux的启动过程将不再神秘。 
阅读之前建议先看一下附图。 
本文中假设inittab中设置的init tree为: 
/etc/rc.d/rc0.d 
/etc/rc.d/rc1.d 
/etc/rc.d/rc2.d 
/etc/rc.d/rc3.d 
/etc/rc.d/rc4.d 
/etc/ ......

Linux基础系列之判断符在shell中的使用方式


作者:康华,华清远见嵌入式学院讲师。
1. 关于某个档名的『类型』侦测(存在与否),如 test -e filename
-e 该『档名』是否存在?(常用)
        -f 该『档名』是否为档案(file)?(常用)
        -d 该『文件名』是否为目录(direct ......

linux 应急相应工具包和livecd

http://www.forensicswiki.org/wiki/Helix3
http://www.sleuthkit.org/index.php
恢复步骤:
root@srv01 [/home/recovery]# ./fls -a -r -p /dev/sdb3 > sdb3usrdirlist.txt
root@srv01 [/home/recovery]# grep -i "access_log" /home/recovery/sdb3usrdirlist.txt
r/r 2195490:    local/ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号