摘要: #!/bin/sh #$1:install path $2:hub link ip and portinstall_path=$1if [ -z "$install_path" ]then install_path=$HOMEfiUUID=$2HostID=$3HubIpPort=$4 instal 阅读全文
posted @ 2016-09-27 20:21 331902579 阅读(591) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh #output example# # AIX53@10.3.2.53 AIX PSO-BOMC 3 5 000CA7AF4C00# "os_type":"aix", "os_version":"5.3", "os_bit":"32"# # AIX61@10.10.10.201 A 阅读全文
posted @ 2016-09-27 20:19 331902579 阅读(402) 评论(0) 推荐(0) 编辑
摘要: #include "Shell.h" #include <signal.h>#include <sys/errno.h>#include <sys/wait.h>#include <stdio.h>#include <fcntl.h>#include <stdlib.h>#include <stri 阅读全文
posted @ 2016-09-27 15:11 331902579 阅读(5653) 评论(0) 推荐(0) 编辑
摘要: find . -xdev -size +2048 -ls| sort -r +6|grep log|xargs rm 删除两M已上的日志文件 创建软链接: ln -s 源文件名 目标文件名 文件夹下所有文件的总大小:du -sh *du -sh ./ :%!xxd ——将当前文本转换为16进制格式。 阅读全文
posted @ 2016-09-27 15:05 331902579 阅读(204) 评论(0) 推荐(0) 编辑
摘要: // // Name : ssh2.cpp// Author : // Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style// #include <libssh2.h 阅读全文
posted @ 2016-09-27 15:04 331902579 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/bashDEBUG=truedebug(){ if [ "$DEBUG" = "true" ];then $@ fi}func_expect(){ expect -c " set timeout 30; spawn $*; expect { \"(yes/no)?\" {sen 阅读全文
posted @ 2016-09-27 15:03 331902579 阅读(5932) 评论(0) 推荐(0) 编辑
摘要: start.sh #!/bin/sh #export NLS_LANG=AMERICAN_AMERICA.ZHS16GBKLD_LIBRARY_PATH=../lib:$LIBPATH:$LD_LIBRARY_PATHexport LD_LIBRARY_PATHLIBPATH=../lib:$LIB 阅读全文
posted @ 2016-09-27 13:56 331902579 阅读(247) 评论(0) 推荐(0) 编辑