echo -e "#include \nint main()\n{\n printf(\"hello
world\\\n\");\n return 0;\n}" > h.c; gcc h.c; ./a.outh.c里的内容#include int
main(){ printf("h...
分类:
其他好文 时间:
2014-05-24 07:34:05
阅读次数:
213
脚本监控:获取最大句柄数的进程:链接分析:脚本片段: case "$handle" in 2)
echo "The handle of the process : " echo " " handle | awk...
分类:
系统相关 时间:
2014-05-24 03:05:11
阅读次数:
420
$pagesize){if($pagevel上一页"."下一页";}$sql="select*frommessagelimit$page,$pagesize";$query=mysql_query($sql);while($row=mysql_fetch_array($query)){echo""....
分类:
Web程序 时间:
2014-05-24 02:34:28
阅读次数:
393
@echo off:openchoice /c:123 /m "1:创建,2:终止,3:删除"if
errorlevel 3 goto deleteif errorlevel 2 goto endif errorlevel 1 goto
create:create@schtasks /create ...
分类:
其他好文 时间:
2014-05-24 00:59:01
阅读次数:
306
private static string CmdPing(string strIp){Process
p = new Process(); p.StartInfo.FileName =
"cmd.exe";//设定程序名p.StartInfo.UseShellExecute = false; //...
分类:
其他好文 时间:
2014-05-24 00:42:36
阅读次数:
481
@echo offrem test.sql文件for %%i in (test.sql) do (
echo excute %%i mysql -u用户名 -p密码 -D数据库名 < %%i)echo successpause
分类:
数据库 时间:
2014-05-23 23:59:32
阅读次数:
569
解决linux ping: unknown host
www.baidu.com转载网址:http://www.kankanews.com/ICkengine/archives/48417.shtml解决方案:如果某台Linux服务器ping不通域名,
如下提示:[root@localhost~]#...
分类:
系统相关 时间:
2014-05-23 23:38:57
阅读次数:
747
1 @echo off 2 setlocal enabledelayedexpansion 3
git status||goto :eof 4 5 set "msg=quick push. %date% %time%" 6 if #%1==# (set
/p "msg=commit messa...
分类:
其他好文 时间:
2014-05-19 15:14:16
阅读次数:
402
">上一页 "> = $totalPage){echo
$totalPage;}else{echo $page+1;} ?>">下一页
分类:
Web程序 时间:
2014-05-19 13:42:33
阅读次数:
220
1.开始结束标记2.定义变量:$变量名例:$str="锦清笋";不需要指明数据类型3.输出语句:(1)echo"helloworld!";---echo命令(2)print();输出语句,是函数,有返回值。输出成功返回1,失败返回0。(3)printf();格式化输出字符串。例:printf("%d...
分类:
Web程序 时间:
2014-05-19 13:14:48
阅读次数:
337