码迷,mamicode.com
首页 >  
搜索关键字:usage report    ( 3968个结果
python optparse 长选项 短选项使用
importoptparse,os,socket,timedefparse_args():usage="""pythontest.pytest"""parser=optparse.OptionParser(usage)help="IplistFile"parser.add_option("-f","--file",dest=‘iplistfile‘,default=‘iplist.txt‘,help=help)help="CmdFile"parser.add_option("-c","--config",de..
分类:编程语言   时间:2014-08-26 19:54:17    阅读次数:298
python 将unix文件转成dos文件
#!/usr/bin/python#-*-encoding:UTF-8-*-importsysiflen(sys.argv)<2:print(‘Usage:pythonsys.argv[0]FileName‘)sys.exit(1)else:print(‘\nunix2dos.pyexecutionsuccessfully!\n‘)File=sys.argv[1]fileobj=open(File,‘rU‘)try:allfile=fileobj.read()finally:fileobj.close()
分类:编程语言   时间:2014-08-26 19:53:57    阅读次数:305
shell脚本版本控制
#!/bin/bash#encodebegin##endcodeend#compile=true#Author:birdman#CreateDate:2013-04-28#AlterDate:2013-04-28#Description:#Usage:functionBirdman_Init(){source/etc/profile>>/dev/null2>&1ScriptName=`basename$0`exportpid="${pid}-->$ScriptName"LogF..
分类:其他好文   时间:2014-08-26 19:51:38    阅读次数:325
shell脚本加密
#!/bin/bash#encodebegin##endcodeend#compile=false#Author:birdman#CreateDate:2013-04-28#AlterDate:2013-05-02#Description:用于加密shell编译#Usage:shcompile.shfunctionBirdman_Init(){source/etc/profile>>/dev/null2>&1ScriptName=`basename$0`exportpid..
分类:其他好文   时间:2014-08-26 19:51:17    阅读次数:210
kickstart usage in RHEL6
Kickstart is used in Redhat Linux automatically perform unattended operating system installation and configuration. Tested Kickstart on RHEL6....
分类:其他好文   时间:2014-08-26 17:26:16    阅读次数:183
Lua1.0 环境准备
从 lua.c 的 main 函数开始,看看在代码执行过程中中发生了什么? ?if?(argc?<?2) ?{ ??puts?("usage:?lua?filename?[functionnames]"); ??return; ?} Lua1.0 执行时至少要有一个参数,否则直接退出...
分类:其他好文   时间:2014-08-26 15:42:16    阅读次数:203
salt-ssh 部署key
[root@develop ~]# salt-master --versions-report Salt: 2014.1.10 Python: 2.7.8 (default, Aug 17 2014, 20:11:11) Jinja2: 2.7.3 M2C...
分类:其他好文   时间:2014-08-26 11:06:25    阅读次数:346
UNIX网络编程卷1 回射客户程序 UDP 超时设置
最初代码: #include "unp.h" int main(int argc, char **argv) { int sockfd; struct sockaddr_in servaddr; if (argc != 2) err_quit("usage: udpcli "); //1.指明服务器的 IP 地址和端口 bzero(&servaddr, s...
分类:其他好文   时间:2014-08-25 22:56:15    阅读次数:374
ASCII码字库
const?uint8_t?FontAscii_8_16[]={ /** ?*@brief????!"#$%&‘()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~? ?*@help??start?with?‘?‘? ?*@usage??...
分类:其他好文   时间:2014-08-25 21:19:55    阅读次数:417
oracle rac常用的命令
oracle rac常用的命令 节点层:olsnodes 网络层: oifcfg 集群层:crsctl,ocrcheck,ocrdump,ocrconfig 应用层:srvctl,onsctl,crs_stat 一.节点层: olsnodes 用来显示集群点列表,可以混用 [root@rac1 bin]# ./olsnodes -help Usage: olsnodes [...
分类:数据库   时间:2014-08-25 19:24:14    阅读次数:577
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!