Entries from 2010-05-01 to 1 month

Ubuntu におけるマルチホーム (IP Alias) の設定とデフォルトのソースアドレス

/etc/network/interfaces に auto eth0 iface eth0 inet static address 172.x.y.10 netmask 255.255.255.0 network 172.x.y.0 broadcast 172.x.y.255 gateway 172.x.y.254 auto eth0:0 iface eth0:0 inet static address 172.x.y.11 netmask 255.255.255.0 …

bashで書き込み用パイプを開く方法

exec 5> >(cronolog ...) # fd=5 の出力を cronolog へ echo "hello" >&5 # cronolog へ出力 exec 5>&- # fd=5 を閉じるServer::Starter 経由で起動するプロセスの出力を統計処理したりする場合には便利かも。アクセスログ等の追記なら、http://d.hatena.ne.…