码迷,mamicode.com
首页 >  
搜索关键字:shell makefile 补基础    ( 30943个结果
python经典例子
http://wangwei007.blog.51cto.com/68019/1106735检查Linux系统日志error和mysql错误日志的脚本http://wangwei007.blog.51cto.com/68019/1102836picklehttp://wangwei007.blog.51cto.com/68019/1045577python用zipfile模块打包文件或是目录、解压zip文件实例http://blog.163.co..
分类:编程语言   时间:2014-05-27 04:14:22    阅读次数:434
linux下自动ftp到服务器对比拷贝指定目录下文件
#!/bin/bash process=8 PWD=`pwd` DAT=`date` ftpip="192.168.1.1" user="ftp_username" password="ftp_password" local_dir="/home/" getlist() { ftp-n$ftpip<<EOF|awk‘{print$9}‘|sed‘/^$/d‘>$PWD/list user$user$password cdfile/ dir bye EOF } copy() { if[-f$P..
分类:系统相关   时间:2014-05-27 03:55:34    阅读次数:378
编译打包
一、Tarball:(一)文件格式*.tar.gz/*.tar.bz2,解压后包括源代码文件、检测程序文件、相关说明。(二)安装的基础操作:1、取得源文件,解压2、查阅解压后的文件(INSTALL/README)取得步骤流程3、相关属性软件的安装4、建立makefile:./configure5、编译make6、安装:makeinsta..
分类:其他好文   时间:2014-05-27 03:55:12    阅读次数:313
python模块paramiko的上传下载和远程执行命令
#!/usr/bin/python #-*-coding:utf-8-*- importparamiko,os,datetime server_ip=‘192.168.1.123‘ server_user=‘root‘ server_passwd=‘10241010‘ server_port=22 #local_dir=‘C:\Python27‘ #remote_dir=‘/soft2/nba/‘ defssh_connect(): ssh=paramiko.SSHClient() ssh.set_missi..
分类:编程语言   时间:2014-05-27 03:51:40    阅读次数:283
使用shell脚本实现加法乘法运算
编写一个shell脚本,实现加法和乘法运算。#!/bin/bash#Function:num1+num2num3*num4sum(){read-p"pleasekeyinfirstnumber:"num1read-p"pleasekeyinsecondnumber:"num2letnum3=${num1}+${num2}echo-e"\033[32m$num1+$num2=$num3\033[0m"}#############cf(){read-p"pleasekeyinfi..
分类:其他好文   时间:2014-05-27 03:28:19    阅读次数:219
源程序的编译安装
------源程序的编译安装首先要经过简单的编译才能安装,编译又依赖编译平台和gcc编译器但是gcc有它的局限性,所以后来就用make代替了,make编译时也是通过调用gcc来完成编译的,但是make又依赖文件makefile,makefile又是通过脚本configure和文件makefile.in生成的autoconf命令..
分类:其他好文   时间:2014-05-27 03:17:36    阅读次数:231
linux shell 命令
linux shell 命令 什么是Shell? Shell 是连接操作系统内核 与 用户 的接口。 终端是shell的表现形式。 什么是Shell编程? Shell 脚本语言加上linux 命令语句就构成了shell程序。优点在于批量处理、不用用户每次手动输入。 bash是shell程序解释器的一种。   常用命令 pwd:print working directory,打印工...
分类:系统相关   时间:2014-05-22 10:39:17    阅读次数:442
linux-shell脚本命令之awk
[ awk简介: ] awk可以从一个文本中获取部分内容, 或者对这个文本进行排版, 使它按某种格式输出. [ awk工作流程: ] awk会把文件一行内容去到...
分类:系统相关   时间:2014-05-22 08:06:46    阅读次数:395
datastage 分析日志获取表记录条数
DataStage通过分析日志获取Job插入目标表的记录数这只是一种不太好的方法,也许还有更好、更简便的方法。这种方法要求每次运行Job之前删除已有的日志信息,否则无法统计出正确的记录数。当然,在Job跑完之后,可以在shell备份本次Job运行的日志到服务器磁盘。1日志清理设置登录..
分类:其他好文   时间:2014-05-20 18:21:01    阅读次数:422
[Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04
[nginx]Step 1Download the shell scriptwget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginxStep 2chmod +x /etc...
分类:数据库   时间:2014-05-20 09:00:18    阅读次数:401
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!