Time of Update: 2016-08-09
標籤:###this is deploysql.sh####!/bin/bashLANG="en_US.UTF-8"date=`date +‘%Y%m%d_%H%M%S‘`user=rootpassword=yourpasswordcd /root/SQLtest/svn upif [ $? = 0 ];then get_env=`cat /root/SQLtest/upgrade.sql |grep ^#ENV=|sed ‘s/#ENV=//g;s/.$//
Time of Update: 2016-08-03
標籤:原創作品,允許轉載,轉載時請務必以超連結形式標明文章 原始出處 、作者資訊和本聲明。否則將追究法律責任。http://nbmonster.blog.51cto.com/1977736/665767 sqlplus與shell互相傳值的幾種情況 情況一:在shell中最簡單的調用sqlplus$cat
Time of Update: 2016-05-24
標籤:#!/bSTART=$(date +%s);datebegin=`date -d "$1" "+%Y%m%d"`dateend=`date -d "$2" "+%Y%m%d"`sdate=`date -d "$datebegin -1 days" "+%Y%m%d"`while [ "$datebegin" -le "$dateend" ]doecho $datebegin/usr/local/hivebi/bin/hive<<EOF--hive sql like:DROP
Time of Update: 2016-05-20
標籤:shell 游標移動指令? 對應方向鍵移動 h 左移一字元 k 上移一行 j 下移一行 l 右移一字元 ? 按行單位移動 0 移到行首 $ 移到行尾
Time of Update: 2016-05-03
標籤:本節內容:一例用於測試資料庫並發壓力的shell指令碼代碼。例子:#!/bin/bash#********************************##並發後台運行fun ##for wanggy 2012-01-25 ##note: www.jquerycn.cn ##fun_num fun函數後台運行次數 ##sql_num 每個函數sql運行次數 ##******************
Time of Update: 2016-01-13
標籤:null 二進位 local sleep mysql 執行指令碼之前必須下載MySQL5.5二進位壓縮安裝包。我是事先下載好了的。下邊執行shell指令碼。#!/bin/bash#auth:taoyake/bin/mkdir -p /taokey/toolscd /taokey/tools/t
Time of Update: 2015-12-02
標籤:bash是Unix/Linux作業系統最常用的shell之一,它非常靈活,和awk、c++配合起來異常強大以下使用一個測試指令碼來說明使用bash調試的方法test.sh[plain] view
Time of Update: 2015-10-29
標籤:sqlite的安裝 1. 首先是下載sqlite,可以該頁面下載:http://www.sqlite.org/download.html 當前的最新版本為:sqlite-shell-win32-x86-3070701.zip這個是windows下sqlite的命令列管理工具,用它可以管理sqlite資料庫檔案 同時最好把文檔也下載下來,裡麵包含了詳細的sqlite的使用說明:sqlite-doc-3070701.zip 2.
Time of Update: 2016-06-21
標籤:shell指令碼的基本演算法編程第一題:斐波那契數列的遞迴與非遞迴非遞迴:650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/82/EF/wKiom1dl-8rD92igAAB-pImrC88891.png-wh_500x0-wm_3-wmp_4-s_582408408.png" title="數列非遞迴圖片.png" alt="wKiom1dl-8rD92igAAB-pImrC88891.png-wh_50" />遞迴:65
Time of Update: 2016-04-09
標籤:#include<iostream>#include<string>#include<vector>using namespace std;void swap(int a[], int i, int j);void insert_sort(int a[], int n){for (int i = 1; i < n; i++){int temp = a[i], j = i;while (j&&temp < a[j -
Time of Update: 2016-04-06
標籤:轉自:http://blog.csdn.net/tengdazhang770960436/article/details/12014839 1.shell檔案return.sh echo 1echo 2echo 3 2.java檔案Test.java [java] view
Time of Update: 2015-08-14
標籤: try{ String cmdStr="C:\\SSH\\ssh2.exe [email protected] /home/azik/tmp/echo_date.sh"; Process mypro=Runtime.getRuntime().exec(cmdStr); mypro.waitFo
Time of Update: 2016-07-09
標籤:最近,為了實驗我們安裝了台Windows Server Core的伺服器,沒有圖形介面的系統總會給人一種很完全的感覺,我們本著安全到底的想法,使用了Windows Remote Shell 的管理方式,因為WinRM基於Web服務管理(WS-Management)標準,使用HTTP協議80連接埠(HTTPS port 443)。最近,為了實驗我們安裝了台Windows Server Core的伺服器,沒有圖形介面的系統總會給人一種很完全的感覺,我們本著安全到底的想法,使用了Windows
Time of Update: 2015-08-27
標籤:1007: [HNOI2008]水平可見直線Time Limit: 1 Sec Memory Limit: 162 MBSubmit: 4567 Solved: 1686Description在xoy直角座標平面上有n條直線L1,L2,…Ln,若在y值為正無窮大處往下看,能見到Li的某個子線段,則稱Li為可見的,否則Li為被覆蓋的. 例如,對於直線: L1:y=x; L2:y=-x; L3:y=0 則L1和L2是可見的,L3是被覆蓋的.
Time of Update: 2016-05-29
標籤:突然很想找個地方寫一點文章,又想到了這個老帳號;沒有因長期靜默被刪號實在是很感動。。。好吧,就這樣紀念一下。第一天。I suddenly wanna write something and recall my old old account here,which is still available.Thanks to for keeping my account,cnblogs.Well,that‘s all for today,the first day
Time of Update: 2016-05-26
標籤:1.瞭解main函數, UIApplication是初始化程式的核心,它接受4個參數。 其中argc和argv兩個參數來自於main()接受的兩個參數;另外兩個String型參數分別表示程式的主要類(principal class)和代理類(delegate class)int main(int argc, char * argv[]) { @autoreleasepool { &
Time of Update: 2016-04-17
標籤: 本筆記是針對ximo早期發的脫殼基礎視頻教程,整理的筆記。本筆記用到的工具:http://download.csdn.net/detail/obuyiseng/9466056EXE32PACK1.ESP定律1、將程式載入到OD中,發現有大段的加密指令,我們先單步走,到達關鍵指令,push ebp2、單步運行到cmp eax,eax處,在寄存器視窗的esp處,右鍵在資料視窗跟隨,並在資料視窗中進行設定硬體斷點。3、按運行,並刪除硬體斷點4、然後單步,就會到達OEP2.
Time of Update: 2015-09-14
Linux Shell指令碼 多線程,linuxshell 在bash中,我們通過後台運行(&)實現多線程。 for((i=1;i<=pairs;i++)) do mongo="mongo_00$i" acmeair_web="acmeair_web_00$i"{ docker run --name $mongo -d -p $port_m:27017 mymongodb docker run -d -p $port:9080 --name
Time of Update: 2015-08-30
學習shell指令碼之前的基礎知識第十二章 學習
Time of Update: 2015-08-09
Shell編程之環境變數設定檔, 一、簡介 1.變數類型: 使用者自訂變數(本地變數) 環境變數:定義每個使用者的作業環境,已學的有path,ps1;要想永久生效,要寫入相對應的位置 預定義變數 位置參數變數 2.source命令 [root@localhost ~]# source 設定檔 或者 [root@localhost ~]# . 設定檔(點.後面有空格) [root@localhost ~]# ./目前的目錄(這裡沒有空格)