上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页
摘要: os.date() 返回 XX/XX/XX XX:XX:XX 月/日/年 时:分:秒os.time() 返回的是从1970年1月1日到现在的经过的秒数。例如:print(os.date())print(os.time())结果:01/19/16 09:09:461453165786 阅读全文
posted @ 2016-01-19 09:14 hbg-rohens 阅读(621) 评论(0) 推荐(0)
摘要: LuCI使用controller目录下的lua脚本中的index函数来构造了一个dispatch树。cgi环境变量PATH_INFO会被用在dispatch树种,例如cgi-bin/luci/foo/bar/baz 会被解析为 foo.bar.baz(在index函数中应该写为function in... 阅读全文
posted @ 2016-01-16 14:32 hbg-rohens 阅读(368) 评论(0) 推荐(0)
摘要: 创建虚拟的vlan设备例如:vconfig add eth0 10就创建了一个eth0.10的设备vconfig的使用说明如下:root@hbg:/# vconfigBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: ... 阅读全文
posted @ 2016-01-14 18:48 hbg-rohens 阅读(704) 评论(0) 推荐(0)
摘要: lua支持的所有字符类. 任意字符%a 字母%c 控制字符%d 数字%l 小写字母%p 标点字符%s 空白符%u 大写字母%w 字母和数字%x 十六进制数字%z 代表0的字符上面字符类的大写形式标识小写所代表的集合的补集,例如:%A代表非字母的字符。print(... 阅读全文
posted @ 2016-01-13 10:12 hbg-rohens 阅读(184) 评论(0) 推荐(0)
摘要: root@hbg:/# tftpBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: tftp [OPTIONS] HOST [PORT]Transfer a file from/to tftp server -l FI... 阅读全文
posted @ 2016-01-11 11:42 hbg-rohens 阅读(3718) 评论(0) 推荐(0)
摘要: 卸载了包 :opkg remove kmod-ath9k - 3.10.49+2014-05-22-1重新进行安装时出现如下错误:root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk Instal... 阅读全文
posted @ 2016-01-11 11:37 hbg-rohens 阅读(12547) 评论(0) 推荐(0)
摘要: 修改了snmp里面的包Makefile,出现了如下问题:Makefile:130: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.源代码如下:tunnel \ucd-snmp/disk \ucd-snmp/dl... 阅读全文
posted @ 2016-01-08 14:39 hbg-rohens 阅读(1839) 评论(0) 推荐(0)
摘要: 位结构 位结构是一种特殊的结构, 在需按位访问一个字节或字的多个位时, 位结构比按位运算符更加方便。 位结构定义的一般形式为: struct位结构名{ 数据类型 变量名: 整型常数; 数据类型 变量名: 整型常数; } 位结构变量; 其中: 数据类型必须是int(unsigned或signed)。 ... 阅读全文
posted @ 2016-01-05 10:52 hbg-rohens 阅读(1107) 评论(0) 推荐(0)
摘要: 在RFC2741中这样定义:4.3中有如下段落: Ageneralarchitecturaldivisionoflaborbetweenmasteragentandsubagent: master agent和subagent有这明确的分工: ThemasteragentisMIBignoranta... 阅读全文
posted @ 2015-12-31 13:59 hbg-rohens 阅读(304) 评论(0) 推荐(0)
摘要: 1、统计文件的行数、单词数、字符数 1)行数: wc -l file cat file | wc -l 2)单词数 wc -w file cat file | wc -w 3)统计字符数 wc -c file cat file| wc -c4)不跟任何参数时,三者都打印,打印顺序为行数、单词数、字符... 阅读全文
posted @ 2015-12-30 19:28 hbg-rohens 阅读(220) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页