2009年2月27日金曜日

ファイヤウォール 無効 停止

$ /etc/rc.d/init.d/iptables stop
$ chkconfig iptables off
$ chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off

設定を表示
NAT
/sbin/iptables -t nat -L -n -v

Filter
/sbin/iptables -t filter -L -n -v



2009年2月26日木曜日

bash スクリプト debug

bash スクリプト debug デバッグ

スクリプトの文法をチェックする。
#!/bin/bash -n

スクリプトの実行コマンドを表示させる。
#!/bin/bash -v

こっちの方がいい
set -x : Display commands and their arguments as they are executed.
set -v : Display shell input lines as they are read.
http://www.cyberciti.biz/tips/debugging-shell-script.html

変数を表示する
$ array=('Take it' easy)
$ declare -p array
declare -a array='([0]="Take it" [1]="easy")'
$


#!/bin/bash

# Display commands and their arguments as they are executed.
set -x

# Display shell input lines as they are read.
#set -v

ls $HOME/*gz

set +x
#set +v

ls $HOME/*gz

exit 0


2009年2月3日火曜日

マルチディスプレイ ツール

virtuawinをしばらく使ってみる。



2009年2月2日月曜日

google 検索 オプション

Googleの画像検索オプョン「imagesize:1280x800」壁紙検索に便利かと。