Archives

You are currently viewing archive for December 2007

12/27: Linux > vi

Category: Linux tips
Posted by: hajime osako
dG カーソルから最後まで全て削除

viエディター
Category: Web dev
Posted by: hajime osako
Category: Linux tips
Posted by: hajime osako
$ chkconfig --list
サービスの一覧を表示する
#!/bin/sh 
# chkconfig: 345 98 20 
# description: Watch system status 
# processname: hotsanic   

# chkconfig: 345 98 20 最初の345は起動するランレベル。 
次の98は起動時の優先順位。 
最後の20は停止時の優先順位。
猫ぐらし: 自分でインストールしたサービスを chkconfig --add するためには

12/13: Linux > SGID

Category: Linux tips
Posted by: hajime osako
Category: Linux tips
Posted by: hajime osako
Shell Scripting Primer: Background Jobs and Job Control
#!/bin/bash

function delayprint()
{
    local TIME;
    TIME=$1
    echo "Sleeping for $TIME seconds."
    sleep $TIME
    echo "Done sleeping for $TIME seconds."
}

delayprint 3 &
delayprint 5 &
delayprint 7 &
wait
echo "Done waiting."
Category: Linux tips
Posted by: hajime osako
Bug #112937 in Ubuntu: “vmware server will not connect remotely”
Edit /etc/pam.d/vmware-authd

#%PAM-1.0
@include common-auth
@include common-account
Category: Web dev
Posted by: hajime osako
MySQL Delete with a LEFT JOIN

DELETE EventLog.* FROM EventLog e LEFT JOIN CustInfo c USING (CustID) WHERE c.CustID IS NULL;