2012年1月19日 星期四

shell script 指令記錄

$$ 代表 script 本身的 pid
$PPID 代表呼叫這個 script 的程序的 pid