shell监控linux系统进程创建脚本分享
网络编程
#!/bin/sh
while true
do
ps ax -o command | sort | uniq > 1.txt
usleep 100000
ps ax -o command | sort | uniq > 2.txt
diff 1.txt 2.txt | grep '^+[^+]' | while read a
do
a=`echo ${a#*+}`
if [[ "$a" != "uniq" ]] && [[ "$a" != "sort" ]] && [[ "$a" != "" ]]
then
echo $a
fi
done
done
局域网远程开机软件制作代码分享
/*************************************************************************FileName:wake_up.cAuthor:wzCreatedTime:Fri15Nov201303:42:47PMCST**************************************************************
cpu时钟预取实例代码分享
测试下预取的效果,利用CPU始终查看效果。根据实验发现,预取地址在地址使用之前的十行左右代码处效果比较好!#includestdio.h#defineMAX_LEN1000000staticinlin
实现shell终端代码分享(可用户登录 实现系统命令)
#include"apue.h"intuserlogin(structpasswd**);intmain(){intret,i=0;longret_cwd;structpasswd*pw;charbuf[128],hostname[16],usercwd[128];char*ptmp1;do{ret=userlogin(&pw);}while(ret!=1);getchar();while(1){
编辑:一起学习网
标签:代码,效果,地址,终端,比较好