Time of Update: 2014-11-25
標籤:style color os 使用 sp strong on bs amp 網上有很多的文章教大家使用定時任務,所以別的廢話我就不多說了我這裡直接有SH來做定時,只是有一點大家不知道,一定
Time of Update: 2014-11-25
標籤:date####################################################################### Copyright C 2014 ## All rights reserved ## Name: yestoday.sh# Author: Canux [email protected] ## Version: V1.0 ## Time: Wed 12 Nov 2014 04:37:37 PM CST# Description:
Time of Update: 2014-11-25
標籤:blog for on 2014 log 時間 as python file 如果跟shell指令碼打交道,遍曆一個時間範圍是很常見的事情,那麼今天就跟大家分享一下:#!/usr/bin/
Time of Update: 2014-11-23
標籤:shell指令碼 系統登入指令檔 服務啟動指令碼實驗要求:1、為root使用者編寫登陸歡迎指令碼,報告當前主機中的進程數,已登陸使用者數,根檔案系統的磁碟使用率2、編寫三個指令碼程式:start,stop和status,用來啟動,停止各種系統服務實驗步驟:[[email protected] ~]# vi welcome.sh#!/bin/bash# this is test.by shengjiep=`ps aux | wc -l` //設定變數pecho "Running
Time of Update: 2014-11-18
標籤:style blog color ar sp 檔案 資料 div on 1、判斷檔案夾是否存在if [ -d /home/q/www ];then echo "true"; else
Time of Update: 2014-11-15
標籤:sp strong on bs amp 工作 linux as 應用 下面是最近學習shell的一些知識點總結***部落格園-邦邦醬好*** 1.什麼是shell(1)Shell
Time of Update: 2014-11-17
標籤:style http io ar os sp on 2014 cti 今天總結了下Shell指令碼的幾種處理字串的方式,封裝了幾個基本的字串處理函數。 代碼(string.inc)如下:
Time of Update: 2014-11-13
標籤:blog http io ar os 使用 sp for strong $ cd `dirname $0` 和PWD%/* shell變數的一些特殊用法在命令列狀態下單純執行 $ cd `
Time of Update: 2014-11-15
標籤:style color ar 使用 sp strong on as tt 求取數學運算式value=$[6/3]value=$((6/3))let "value += 1
Time of Update: 2014-11-14
標籤:des style blog http io color sp for 檔案 需求前兩天碰到需要在十層左右的檔案夾中提取檔案的需求,於是寫了此指令碼。如下面這樣的檔案結構: dir1
Time of Update: 2014-11-15
標籤:shell防止其他人暴力破解密碼,如果有人嘗試輸入密碼錯誤次數到達5次則拒絕此IP訪問ssh服務。#!/bin/bashlastb | awk ‘{print $3}‘ | uniq -c | sort -r > a.txtsed -ri ‘[email protected]^[[:space:]][email protect
Time of Update: 2014-11-12
標籤:後台運行 處理器 程式 多線程 管道 650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png"
Time of Update: 2014-11-11
標籤:blog os 使用 sp div 問題 log bs as $# 傳遞到指令碼的參數個數$*
Time of Update: 2014-11-03
標籤:shellwhile CONDITION;do statmentdoneuntil CONDITION;do statmentdone練習:寫一個指令碼:每隔五秒鐘就看下jt有沒有登陸,沒有登陸則繼續執行,登陸了則停止命令650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/A5/wKioL1RWFsOAf8tbAAEJjcmWsbw815.jpg" title="2.jpg"
Time of Update: 2014-11-04
標籤:style blog io color ar os java for sp 運行之前將伺服器弄成免ssh登陸。設定檔沒有太大的改動 可以覆蓋之前的配置profile
Time of Update: 2014-11-03
標籤:blog ar 使用 for sp on 2014 log bs (1)if語句[email protected]:/mnt/shared/shellbox/shellif#
Time of Update: 2014-11-03
標籤:style blog http io ar os sp strong 檔案 代碼統計code如下:xargs說明:xargs 讀入stdin的值,
Time of Update: 2014-11-03
標籤:shell bash linux function 我們在寫一些功能性指令碼的時候,往往會把操作相似或者參數類似行為接近的函數放在同一個shell指令碼中,這樣管理方便,維護簡單,也很清晰。對於這種情況,通常的辦法是,在shell指令碼中定義所有用到的函數,然後在本文代碼中用case語句讀入輸入的命令函數參數來調用指定的相應函數
Time of Update: 2014-11-03
標籤:blog http io ar 使用 for 檔案 div on 引言shell,我們常常會用到,以其強大的功能,會協助我們解決非常多棘手的問題。近期遇到一個問題,要跑非常多case,假設
Time of Update: 2014-11-06
Shell指令碼更換tomcat叢集war包運行之前將伺服器弄成免ssh登陸。設定檔沒有太大的改動 可以覆蓋之前的配置profile 設定檔bak=/home/wsm/bakwebapps=/home/wsm/webapps/WSMMeasurearry=192.168.68.29 192.168.10.147newwar=1.wardeplypath=/home/wsm/deployscp.sh