typeset用于设置变量属性,如大小写,宽度,左右对齐等都可以用typeset来控制, 当用typeset改变一个变量的属性时,这种改变是永久的,下面以ksh为例,演示typeset的几种典型用法1,无选项的执行typeset,则显示所有变量/home/lee#typesettypeset COL...
分类:
其他好文 时间:
2014-07-31 19:45:07
阅读次数:
234
Apache服务器套件自带ab,只要安装Apache即可,无需另行安装ab。ab位于%ApacheHome%/bin目录下(“%ApacheHome%”为Aapche安装路径),你也可以把ab.exe文件copy出来,独立使用。 假设我们要测试一个PHP论坛系统,其中一个性能测试用例是:“同时...
分类:
其他好文 时间:
2014-07-31 19:38:57
阅读次数:
160
#!/bin/sh
if [ -z "`curl --connect-timeout 15 --max-time 20 --head --silent http://localhost/index.php|head -n 1|grep ‘200‘`" ];then
echo -e "$(date +%Y-%m-%d)\n"
killall nginx
killall...
分类:
Web程序 时间:
2014-07-31 17:23:50
阅读次数:
301
#!/bin/shtraffic=10rm -rf test.txtdata=`sqlplus -S anoscfg/anoscfg <<EOFspool test.txtset pages 0 set feed offset heading off;set feedback off;set ve....
分类:
数据库 时间:
2014-07-31 16:14:46
阅读次数:
275
function setClipBoard(str) Set WshShell = CreateObject("WScript.Shell") Set oExec = WshShell.Exec("clip") Set oIn = oExec.stdIn oIn.WriteL...
分类:
其他好文 时间:
2014-07-31 16:11:36
阅读次数:
216
当用bash启动一个程序,你可以用在程序后加&,实现程序在后台运行; 例如: emacs & 但如果你忘了输入&;但你又不想把程序停止后重新启动; 你可以这么做: 按Ctrl + Z暂停前台工作,比如前面提到的Emacs; 然后用jobs命...
分类:
系统相关 时间:
2014-07-31 13:44:27
阅读次数:
291
摘抄自http://www.ibm.com/developerworks/AWK简介AWK是一种“样式扫描和处理语言”。它允许您创建简短的程序,这些程序读取输入文件、为数据排序、处理数据、对输入执行计算以及生成报表。它的名称取自于它的创始人AlfredAho、PeterWeinberger和BrianKernighan姓氏的首个字母..
分类:
系统相关 时间:
2014-07-31 13:38:57
阅读次数:
349
GRUB加密:MD5加密[root@Server3~]#grub-md5-crypt
Password:
Retypepassword:
$1$TJL.q1$4PnBp7pXRsN/BZhrkbSyn1
[root@Server3~]#[root@Server3~]#cat/boot/grub/grub.conf
#grub.confgeneratedbyanaconda
#
#Notethatyoudonothavetorerungrubaftermakingchangestothisfile
#..
分类:
其他好文 时间:
2014-07-31 13:37:27
阅读次数:
253
【版权声明:转载请保留出处:blog.csdn.net/gentleliu。Mail:shallnew at 163 dot com】
这一节我们讲一下make的函数,在之前的章节已经讲到了几个函数:wildcard、patsubst、notdir、shell等。一般函数的调用格式如下:
$(funcname arguments)
或
$(funcname arguments)
...
分类:
其他好文 时间:
2014-07-31 13:21:17
阅读次数:
209