码迷,mamicode.com
首页 >  
搜索关键字:bash shell read    ( 57440个结果
socket编程中recv与send函数
recv函数会将套接字缓冲区中的内容读出,但不清空,与read函数的区别在此。此函数有一个flag标志位,设为MSG_PEEK。 send函数会将缓冲区中的内容写入到套接字,也不清空,与write函数的区别在此。 用这两个函数可以先接收或发送缓冲区中的内容,然后再用readn(此时缓冲区中的内容依然存在)与write函数去继续判断换行符/n,对缓冲区内容实现换行输出。 echocli.c...
分类:其他好文   时间:2014-05-13 23:43:35    阅读次数:494
FileSystemObject组件新建读取添加修改删除功能实例
FileSystemObject组件应该实例              read="michael.txt"  '获取文件真实路径  read=LEFT(Server.MapPath(Request.ServerVariables("PATH_INFO")),InstrRev(Server.MapPath(Request.ServerVariables("PATH_INF...
分类:其他好文   时间:2014-05-13 07:17:51    阅读次数:283
Linux作业(三)-shell统计某文章中出现频率最高的N个单词并排序输出出现次数
#!/bin/bash if [ $# -ne 2 -a $# -ne 1 ] ;then echo "usage: `basename $0 ` [n] input file " echo exit fi if [ $# -eq 1 ];then I_TOP=10 I_FILE=$1 fi...
分类:系统相关   时间:2014-05-13 06:21:24    阅读次数:454
Hbase常用命令
hbase shell命令的使用 再使用hbase 命令之前先检查一下hbase是否运行正常 hadoop@Master:/usr/hbase/bin$ jps 2640 HMaster 27170 NameNode 27533 SecondaryNameNode 3038 Jps 27795 TaskTracker 27351 DataNode 2574 HQuorumPeer ...
分类:其他好文   时间:2014-05-13 05:40:21    阅读次数:460
用shell脚本监控linux系统 自动发送邮件
此脚本可以做一个定时的检测,超出设定的值,即往邮箱发送警告脚本用到bc,sendmail,163邮箱,yuminstallbc#!/bin/bash #SystemMonitoringScript while[1] do #本机需开启postfix或sendmail服务。 #报警邮件地址设置 MAILFROM=root@localhost MAILTO=your_mail@163.com #设置..
分类:系统相关   时间:2014-05-13 05:05:29    阅读次数:649
mysql主从检测脚本
#!/bin/bash #checkmysqlslavestatus USER="check" PSW="***" RUNTIME=3600 ADDR="192.168.*.*" declare-aslave_is forIPin$ADDR do slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘)) if["${slave_is[0]}"="Y..
分类:数据库   时间:2014-05-13 04:33:44    阅读次数:374
mongodb的写入,删除,更新
1. mongodb创建数据库和集合 mongodb数据库和集合的创建是隐式的。 意思是说不用单独写create database 语句。 直接使用use关键词即可。 在bin/mongo shell下运行:...
分类:数据库   时间:2014-05-13 00:28:12    阅读次数:445
0501-APP-launcher-shortcut
判断shutcut是否安装 "com.android.launcher.permission.READ_SETTINGS"/> 这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings 通过但因htc所有包发现htc中的launcher被定制了改名为co...
分类:移动开发   时间:2014-05-12 23:58:28    阅读次数:625
远程注册自己的组件
把asp程序作成dll很多好处,但是有一点,该dll必须注册才能在asp中调用。如果是自己的服务器那还好,但如果是租用的虚拟服务器,就没办法使用了。  怎样在远程主机上注册我们的dll呢?在服务器端使用Shell!!! 让我们先将自己的dll文件通过ftp或http上传到服务器上,然后作一个asp程序,调用WScript.Shell来执行regsvr32命令:  Set oShell = C...
分类:其他好文   时间:2014-05-12 23:45:04    阅读次数:377
菜鸟调错(四)——Spring与DWR集成,配置文件报错
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document;  2)...
分类:编程语言   时间:2014-05-12 22:55:47    阅读次数:409
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!