#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
client.cpp// App02.cpp :
定义控制台应用程序的入口点。//#include #include #include #include #include #include #include
#ifndef WIN32#include # ifdef _XOPEN_SOURCE_EX...
分类:
其他好文 时间:
2014-05-26 19:51:00
阅读次数:
292
在备份ltedecoder程序时,需要把此目录拷由到bak目录下,但decoder目录下有个大文件,不需要备份,还有日志问题,也不需要备份,如何实现呢??
方法:
cd /source-dir
find . -name .snapshot
-prune -o -print0 | cpio -pmd0 /dest-dir
解释: This command cop...
分类:
其他好文 时间:
2014-05-25 21:51:29
阅读次数:
518
利用Eclipse中的Maven构建Web项目
1、新建源文件夹,Java Resources鼠标右键,“New-->Source Folder”
2、新建src/main/java src/main/resources src/test/java src/test/resources四个源包
3、双击每个文件夹的Output
folder...
分类:
Web程序 时间:
2014-05-25 21:26:57
阅读次数:
361
Elasticsearch is a powerful open source search
and analytics engine. The vulnerability allows attackers read from or append to
files on the system hos...
分类:
其他好文 时间:
2014-05-25 16:40:56
阅读次数:
349
(1)在虚拟机中执行应用程序
(2)程序调用libc里的封装例程 , 封装例程syscall调用,向内核发送系统调用号。具体分析发现。syscall会通过调用__kernel_vsyscall函数发送系统调用号。
(3)__kernel_vsyscall函数执行sysenter快速系统调用,由用户态进入内核态。
(4)sysenter进入内核态时,会先找到执行系统调用的入口函数ia32_sysenter_target。
(5)执行到sysenter_do_call函数处,通过call *sys_call_...
分类:
其他好文 时间:
2014-05-25 13:03:55
阅读次数:
396
调试linux内核环境搭建方法(ddd+busybox+qemu+linux3.5.4内核)
准备工作
(1).qemu虚拟机
(2).busybox软件
(3).linux-3.5.4内核
(4).ddd 调试工具
。。。。。。。。。
。。。。。。。。。
在qemu虚拟机终端中输入test_fork命令,这样内核就会在do_fork函数处中断了。你就可以对这个函数各种调试了。。...
分类:
系统相关 时间:
2014-05-25 12:57:43
阅读次数:
466
gunzip -r hongchangfirst/data
如何递归删除那些剩余的非log结尾的文件?
先列出确认一下:
find hongchangfirst/data -type f ! -name "*.log"
然后真正的删除:
find hongchangfirst/data -type f ! -name "*.log" -exec rm -f {} \;...
分类:
系统相关 时间:
2014-05-25 09:41:05
阅读次数:
694
序
僵死(zombie)进程简而言之就是:子进程退出时,父进程并未对其发出的SIGCHILD信号进行适当处理,导致子进程停留在僵死状态等待其父进程为其收尸,这个状态下的子进程就是僵死进程。
因为并发服务器常常fork很多子进程,子进程终结之后需要服务器进程去wait清理资源。对于某些进程,特别是服务器进程往往在请求到来时生成子进程处理请求。如果父进程不等待子进程结束,子进程将成为僵尸进程(zo...
分类:
系统相关 时间:
2014-05-25 06:12:34
阅读次数:
313