码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
编程风格的祸
早!!这个星期博主重温了《C程序设计》。。看到那本书的编程风格不太好!!该有的括号也不加。。例如:#includeint main(){int j=0,i=0;int H;for(H=0;H0) //H等于0的时候不执行j++;j++; //for的执行范围i++;printf("%d \n %d ...
分类:其他好文   时间:2014-06-15 15:20:56    阅读次数:166
Linux下线程pid和tid
#include #include #include #include struct message{ int i; int j;};void *hello(struct message *str){ printf("child, the tid=%lu, pid=%d\n",pt...
分类:编程语言   时间:2014-06-15 09:40:46    阅读次数:526
Linux初始化脚本
以下脚本用于linux系统的初始化脚本,可以在服务器系统安装完毕之后立即执行。脚本结合各位大牛一些参数,已经在CentOS5下通过。使用方法:将其复制,保存为一个shell文件,比如init.sh。将其上传到linux服务器上,执行sh init.sh。建议大家在系统安装后立即执行。脚本代码:#!/...
分类:系统相关   时间:2014-06-15 06:10:22    阅读次数:698
使用lftp传输文件的shell脚本
使用lftp传输文件的shell脚本
分类:其他好文   时间:2014-06-15 00:16:10    阅读次数:353
shell命令(4)——sed, paste
sed命令 sed --helpsed是非交互式的编辑器,它不会修改文件,默认把结果都打印到屏幕上。sed的用法有很多,这里只介绍一下常用的1、删除一个文件的某些行,或取出文件中得某些行删除c中得第2~4行:取出第1~3行:删除包含'1'的行到包含'9'的行:sed不像grep,不管是否找到指定的模...
分类:其他好文   时间:2014-06-14 19:40:08    阅读次数:280
BlueJ的code pad
BlueJ code pad shell/REPL...
分类:其他好文   时间:2014-06-14 17:34:53    阅读次数:231
uip移植telnetd并添加自定义命令
刚刚移植了一下uip的telnetd,还是比较简单方便的. 首先添加文件,注意usershell是自己写的. 在tcp.c中添加tcp端口监听程序 添加#include "telnetd.h" void tcp_demo_appcall(void) { if(uip_conn->lport == HTONS(TCP_ClinetPort)) { tcp_c...
分类:Web程序   时间:2014-06-14 13:13:03    阅读次数:281
poj3253
#include #include using namespace std; #define read(x) scanf("%lld",&x) int main() { priority_queue,greater >q; long long n,temp,sum; read(n); if(n==1) { read(temp); printf("%lld\n",temp); ...
分类:其他好文   时间:2014-06-14 10:34:12    阅读次数:223
SHELL学习笔记----IF条件判断,判断条件
SHELL学习笔记----IF条件判断,判断条件前言: 无论什么编程语言都离不开条件判断。SHELL也不例外。if list then do something here elif list then do another thing here else do something else here...
分类:其他好文   时间:2014-06-14 09:40:46    阅读次数:204
Centos 6.4上面用Shell脚本一键安装mysql 5.6.15
Centos 6.4上面用Shell脚本一键安装mysql 5.6.15#!/bin/bashif [ `uname -m` == "x86_64" ];thenmachine=x86_64elsemachine=i686fimysqlBasedir=/storage/server/mysqlmys...
分类:数据库   时间:2014-06-14 08:36:02    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!