2009-08-03から1日間の記事一覧
$ /etc/prtconf | grep Memory Memory size: 32640 Megabytes [参考] http://trialpc.sakura.ne.jp/blog/2007/03/solaris.php
30行のファイルを作成して、 $ perl -le 'print for 1..30' > total $ cat total 1 2 ... 30 10行ごとに分割して、 $ split -l 10 total 確認すると、 $ ls total xaa xab xac $ cat xaa 1 2 ... 10 $ cat xab 11 12 ... 20 $ cat xac 21 22 ... 30 こりゃ便…
再起動する shutdown -r -t 0 -f 電源OFFする shutdown -s -t 0 -f [参考] http://remote.desktop.bz/?p=27
trap コマンドは送出されたシグナルを捕捉し、あらかじめ指定されていた処理を実行する。 書式 trap 'コマンド' シグナルリスト 例 $ vi trap.sh #!/usr/bin/bash while : do date '+%Y-%m-%d %H:%M:%S' trap "echo Ctrl+c pressed; kill -9 $$" 2 sleep 3 d…
Bourne Shell の特殊シェル変数 $! はバックグラウンドで実行された直前のプロセスのプロセス番号を保持している。 $ man sh ... ! The process number of the last background command invoked. ... [参考] http://flex.ee.uec.ac.jp/texi/sh/node30.html#S…
ミリ秒、ナノ秒まで持ちたい場合は timestamp 型にしないといけない。 [参考] Oracleデータ型 データ型 - オラクル・Oracleをマスターするための基本と仕組み