码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
一个简单的监控网站是否正常并自动重启服务的shell脚本
#!/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
shell中的界定
shell初学者最易混淆的界定符号剖析...
分类:其他好文   时间:2014-07-31 17:17:46    阅读次数:141
寄存器中 置位 与 清除 -- C
第3位的置位与清除操作。 #include #include #include #define BIT3 (0x1<<3) int main() { int a = 0x00000000; printf("a = 0x%08X\n", a); /* 置位第3bit a = a | (0x1<<3) a = a | 0x8 */ a |= BIT3; printf("a = 0x%08X\n", a); /*...
分类:其他好文   时间:2014-07-31 17:15:07    阅读次数:386
pthread_cancel
1 #include 2 #include 3 #include 4 #include 5 6 static void checkResults(char *string, int rc) { 7 if (rc) { 8 printf("Error on : %s,...
分类:其他好文   时间:2014-07-31 16:50:06    阅读次数:314
shell oracle
#!/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
本地vbs调试快速显示输出
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
SGU 114
分析得,选取的电视塔的位置应当位于各城市的加权中位数位置的右边最近的城市位置。理由:对于上述位置A,假设它右边城市+它本身的人数为rp,它左边城市的人数为lp,由定义rp>=lp。所以,如果向左移动D距离,则右边城市不满意度增加D*rp,左边减少D*lp=sum/2+sum%2){ printf.....
分类:其他好文   时间:2014-07-31 15:57:46    阅读次数:196
Linux Shell下的后台运行及其前台的转换
当用bash启动一个程序,你可以用在程序后加&,实现程序在后台运行; 例如: emacs & 但如果你忘了输入&;但你又不想把程序停止后重新启动; 你可以这么做: 按Ctrl + Z暂停前台工作,比如前面提到的Emacs; 然后用jobs命...
分类:系统相关   时间:2014-07-31 13:44:27    阅读次数:291
不可摸数 【杭电-1999】 附题
/* hdu 1999 不可摸数 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8274    Accepted Submission(s): 2122 Problem Description s(n)是正整数n的真因子之和,...
分类:其他好文   时间:2014-07-31 13:22:06    阅读次数:239
从头开始写项目Makefile(十):make内嵌函数及make命令显示
【版权声明:转载请保留出处: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!