摘要: 写好的程序,在aix 6.1机器上可以编译能够通过并正常运行,移植到aix 5.3机器,编译通过,但提示 thread_creds_t 相关告警,忽略…… 结果程序一启动就会core掉,gdb提示访问非法内存。 很久一段时间没有找到解决方案,后来一想,会不会是编译过程中忽略的告警问题造成的。 查找资 阅读全文
posted @ 2017-03-27 17:59 331902579 阅读(121) 评论(0) 推荐(0) 编辑
摘要: exe_start_agent.sh #!/bin/sh FILENAME="ip.file"cat $FILENAME|while read linedoeval `echo $line|awk '{print "IP="$1}'`eval `echo $line|awk '{print "USE 阅读全文
posted @ 2016-09-30 10:46 331902579 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 Makefile: ifeq ($(SYSTYPE),AIX)include Makefile.aix5elseifeq ($(SYSTYPE),HP-UX)include Makefile.hpux11elseifeq ($(SYSTYPE),Linux)include Makefi 阅读全文
posted @ 2016-09-29 16:30 331902579 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #!/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 阅读(590) 评论(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 阅读(400) 评论(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 阅读(5651) 评论(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 阅读(5923) 评论(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) 编辑