2014年第一个脚本,哈哈!!! expect实现远程主机自动执行命令脚本:#!/usr/bin/expect --if { [llength $argv] < 4 } { puts "Usage: $argv0 ip user passwd port commands timeout" exit ...
分类:
其他好文 时间:
2014-07-06 16:23:01
阅读次数:
341
一、 perl连接Oracle数据库[plain]view plaincopy[oracle@oracle11gR2perl_script]$moreconnect.pl#!/usr/bin/perl#perlscriptusedtoconnecttoOracleusestrict;useDBI;m...
分类:
数据库 时间:
2014-07-06 13:09:28
阅读次数:
278
事前准备:
下载并安装:
Cairo:
http://www.lfd.uci.edu/~gohlke/pythonlibs/bux9zozk/pycairo-1.10.0.win32-py2.7.exe
Pycha:
https://bitbucket.org/lgs/pycha/get/e3e270a0e7ae.zip
简单的程序示例如下(包括饼图和直方图):
#!/usr/...
分类:
编程语言 时间:
2014-07-06 10:14:25
阅读次数:
315
环境:Ubuntu 9.10 git-1.8.2.3.tar.bz2
1.将安装包下载到所选目录下,如:/tmp
2.tar -xjf git-1.8.2.3.tar.bz2
3.cd git-1.8.2.3
4.配置:./configure --prefix=/usr/bin
5.安装,如果直接make install安装出现错误,可以用下面命令...
分类:
其他好文 时间:
2014-07-06 08:47:47
阅读次数:
207
今天又看CS630[1]的Chapter 15,发现里头的一个例程manydots.s无法正常编译。
$ gcc manydots.s -o manydots
/tmp/ccIvmRVT.o: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/x86_64-linux-gnu/4....
分类:
其他好文 时间:
2014-07-06 00:50:42
阅读次数:
206
执行启动nginx:/usr/local/nginx/sbin/nginx
错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查找:[roo...
分类:
其他好文 时间:
2014-07-06 00:11:52
阅读次数:
205
There's a much simpler solution for this. Try running the following command:sudo /usr/sbin/DevToolsSecurity --enable
分类:
数据库 时间:
2014-07-05 22:43:50
阅读次数:
451
最近需要做点支持linux的跨平台gui,网上查到了wxPython及Boa,感觉不错,照着Boa文档做做练习。代码:App:#!/usr/bin/env python#Boa:App:BoaAppimport wximport Frame1modules ={'Dialog1': [0, '', ...
分类:
编程语言 时间:
2014-07-05 21:21:40
阅读次数:
371
1 2 4 5 usr/local/maven 6 7 true 8 9 false 10 11 false 12 13 14 15 org.codehaus.mojo 16 17 18 19 20 21 ...
分类:
其他好文 时间:
2014-07-05 21:12:11
阅读次数:
170
user www www;worker_processes 2;error_log /usr/local/nginx/logs/nginx_error.log crit;pid /usr/local/nginx/logs/nginx.pid;#Specifies the valu...
分类:
其他好文 时间:
2014-07-05 20:48:19
阅读次数:
245