Time of Update: 2014-09-24
標籤:style blog http color io os java ar 檔案 該Shell指令碼用於實現將DB2資料庫表匯出到檔案,將在另一篇博文《Java代碼調用Shell指令碼並傳
Time of Update: 2014-09-16
標籤:db2 匯出 shell export 該Shell指令碼用於實現將DB2資料庫表匯出到檔案,將在另一篇博文《Java代碼調用Shell指令碼並傳入參數實現DB2資料庫表匯出到檔案》中通過Java代碼實現調用該指令碼並傳入參數。#!/usr/bin/env shDBSCHEMA=$1DBUSER=$2DBPASSWORD=$3TABLENAME=
Time of Update: 2014-09-17
標籤:style http color io os 使用 ar strong for (一)檔案建立命令1.touch命令例如:touch abc命令在本地目錄中建立了一個名為abc的空檔案2.
Time of Update: 2014-09-16
標籤:linux 常用命令 shell應用技巧 Shell應用技巧 小技巧:1、命令補全功能:<Tab>鍵2、清屏:Ctrl+l3、刪除游標前所有內容:Ctrl+u4、命令記錄:history這時: !history所列出的命令標號,就可以執行那條命令。如:!188而且:按方向鍵↑和↓可尋找以前執行過的命令。 重要技巧:1、命令別名:作用:可以使操作更加
Time of Update: 2014-10-01
標籤:bash shell 安全性漏洞 bash環境變數存在任意代碼執行漏洞:“通過CGI請求方式可以導致遠程代碼執行,進而導致伺服器被入侵,危害嚴重,且官方公布補丁也被繞過”,【漏洞影響】:1)bash受影響版本:3.0 ~
Time of Update: 2014-09-28
標籤:expect#!/bin/bashIP=`awk ‘{print $1}‘ /home/bash/mima.txt`for i in $IPdo{ port=`grep $i /home/bash/mima.txt|awk ‘{print $2}‘` &
Time of Update: 2014-09-25
標籤:ar sp on c r bs as class ca #!/bin/bash INTERVAL="1" # update&n
Time of Update: 2014-09-25
標籤:遊戲破解方面 反編譯 arm android脫殼 剛剛忙完手頭的活,剛好分析完一個加固過的遊戲,想起來上一次發的文章中沒有發分析過程,順手錄製了個視頻,這裡簡單補充上來對於這個殼的新版本,網上也有教程,脫dex已經成功,留待以後有時間再做一個視頻。上一篇:安卓學習手冊http://www.52pojie.cn/thread-280588-1-1.html本
Time of Update: 2014-09-24
標籤:字串 null 整數比較:-eq 等於,如:if [ "$a" -eq "$b" ] -ne 不等於,如:if [ "$a" -ne "$b" ] -gt 大於,如:if [ "$a" -gt&nb
Time of Update: 2014-09-22
標籤:shell指令碼1. 開頭指定指令碼解譯器#!/bin/sh 或 #!/bin/bash2. 開頭提供功能描述、作者以及版本等資訊#Description:#Author:#Contact:#Last edited:#Version: 註:可以修改/etc/vimrc或者~/.vimrc讓以上資訊在每次建立shell指令碼時自動產生3. 指令碼中不用中文注釋,容易出現亂碼4. 指令碼以.sh為副檔名5.
Time of Update: 2014-09-20
標籤:style http io os 使用 ar 檔案 資料 div 簡單的 shell script
Time of Update: 2014-09-16
標籤:shell getopts[[email protected] shell]# cat getopts.sh #!/bin/bash#date=2014-09-16#is to practice the getoptswhile getopts "a:bc" arg(:前面的變數是一定要跟參數的)do case $arg in a)echo "a‘s arg:$OPTARG";; b)echo "b";;
Time of Update: 2014-09-16
標籤:zabbix-agent 指令碼安裝[[email protected] shell]# cat zabbix.sh #!/bin/bashset -x HOST=`hostname`DIR=/rootservice iptables stopAZ (){ groupadd zabbix useradd zabbix -g zabbix -s /sbin/nologin tar
Time of Update: 2014-09-16
標籤:blog http 使用 ar strong for div sp 代碼 前言用bash shell寫程式時,經常會用到for迴圈,特別是從1到100這種需求,這裡記錄幾種shell中從1
Time of Update: 2014-09-13
標籤:style blog http color os 使用 ar strong 檔案 開啟文字編輯器,建立一個檔案,副檔名為sh(sh代表shell),副檔名並不影響指令碼執行,見名知意就好,
Time of Update: 2014-10-02
Shell升級,/bin/bash版本4.1到4.3,bash4.3bash環境變數存在任意代碼執行漏洞:“通過CGI請求方式可以導致遠程代碼執行,進而導致伺服器被入侵,危害嚴重,且官方公布補丁也被繞過”,【漏洞影響】:1)bash受影響版本:3.0 ~ 4.3,小於3.0的bash版本也可能受影響,2)入侵方式:結合CGI方式可以導致遠程代碼執行,入侵伺服器;瞭解系統當前bash的版本[root@image01 ~]# /bin/bash -versionGNU bash, version 4
Time of Update: 2014-10-01
Shell編程入門(第二版)(中)變數測試語句-test作用:用來測試變數是否相等,是否為空白,檔案類型等。格式:test 測試條件 或 [] #範圍:整數,字串,檔案1)整數測試:test int1 -eq int2 測試整數是否相等test int1 -ge int2 測試int1是否>=int2test int1 -gt int2 測試int1是否>int2test int1 -le int2 測試int1是否<=int2test int1 -lt int2 測試int1
Time of Update: 2014-10-01
Shell編程入門(第二版)(上)簡單的樣本Shell程式樣本1. #!/bin/bash#This is to show what a shell script looks likeecho "Our first example"echo # This inserts an empty line in output.echo "We are currently in the following
Time of Update: 2014-09-29
Shell編程入門(第二版)(上),shell編程入門簡單的樣本Shell程式樣本1.#!/bin/bash#This is to show what a shell script looks likeecho "Our first example"echo # This inserts an empty line in output.echo "We are currently in the following
Time of Update: 2014-09-24
linux shell重新導向,shell重新導向將shell的錯誤輸出重新導向到標準輸出,這樣就可以記錄指令碼的出錯資訊。如:/root/test.sh >> test.log 2>&1註:linux先載入 /etc/rc.d/rc.local 後載入 /etc/profile教linux shell 重新導向一個簡單問題 ls -l >/111txt >/222txt