码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
javascript中遇到Cannot read property 'split' of undefined问题
function NewDate(dateTime) { var fulldate = dateTime.split('-'); var day = fulldate[2].split(" "); var time = day[1]....
分类:编程语言   时间:2014-07-07 12:43:39    阅读次数:701
Windows 更改桌面位置
运行regeditHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders找到Desktop%USERPROFILE% 默认为C:\Users\用户名,替换成要更改的目录如F:\系统...
分类:Windows程序   时间:2014-07-07 12:39:06    阅读次数:277
编译ios版本的librtmp+openssl
http://blog.csdn.net/cjj198561/article/details/28955461编译librtmp需要先编译openssl,因为librtmp依赖openssl首先编译openssl:把以下内容保存为shell脚本:#!/bin/shVERSION="1.0.1h" #...
分类:移动开发   时间:2014-07-07 12:38:30    阅读次数:266
论条件变量cond_wait的原子性
使用的基本模板如下(参考APUE):signal代码序列如下,pthread_mutex_lock...pthread_cond_signalpthread_mutex_unlockwait代码序列如下,while (1){ pthread_mutex_lock(&mutex); ...
分类:其他好文   时间:2014-07-07 12:16:56    阅读次数:236
Python守护进程(多线程开发)
#!/usr/bin/pythonimport sys,time,json,loggingimport Queue, threading, datetimefrom lib.base.daemon import Daemonfrom lib.queue.httpsqs.HttpsqsClient i...
分类:编程语言   时间:2014-07-07 11:30:23    阅读次数:276
mongodb local数据库的空间初始化好大啊!
新建立了一个replicat set,登录到primary里,show dbs一看吓一跳local数据库竟然占用了80多G的空间[root@wxlab31 bin]# ./mongo --host 10.1.1.31 --port 27017MongoDB shell version: 2.4.6c...
分类:数据库   时间:2014-07-07 11:10:21    阅读次数:294
useradd
useradd指令useradd创建用户。创建用户时的一些默认选项存放在/etc/default/useradd和/etc/login.defs文件中。/etc/default/userasdd文件的内容如下:[root@Server3tmp]#cat/etc/default/useradd #useradddefaultsfile GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/ba..
分类:其他好文   时间:2014-07-02 16:05:03    阅读次数:237
fast_ping
快速的ping网络中存活的主机,该脚本有并行执行的特点,能够在后台快速完成网络主机的检查。#!/bin/bash # # foripin192.168.1.{1..255}; do ( ping$ip-c2&>/dev/null; if[$?-eq0]; then echo$ipisalived fi )& done wait如果要出事255个地址,ping每一个IP的主机都..
分类:其他好文   时间:2014-07-02 15:59:11    阅读次数:286
计算几何-hdoj-1147-Pick-up sticks
Pick-up sticks Problem Description Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks,...
分类:其他好文   时间:2014-07-02 15:29:53    阅读次数:295
ACE线程管理
头文件 #include "ace/Thread_Manager.h"    等待所有线程的退出 ACE_Thread_Manager::instance()->wait(); 此函数执行的时候会等待所有线程退出之后再退出,为什么要等待所有线程的退出呢?因为多线程环境下程序的执行步骤和单线程不同,多线程环境下如果不等待所有线程都退出就会导致某些线程执行了一部分就退出,因为CPU不会把时间都...
分类:编程语言   时间:2014-07-02 15:17:37    阅读次数:368
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!