Version 4 (modified by jazz, 15 years ago) (diff) |
---|
2010-05-18
知止而後能定,定而後能靜,靜而後能安,安而後能慮,慮而後能得
Bash Shell Script
- bash script 除錯(debug)與追蹤(trace)技巧:經常玩自由軟體的人一定要看別人的程式碼,或對自己寫的程式碼進行除錯。若是 perl script 可以加一個 -d 參數下去跑。 如果是 bash 呢?? bash script 可以加一個 -x 參數下去跑。 底下是一個範例:
jazz@jazzbook:~/mkxpud$ bash -x ./tools/mkxpud + export LC_ALL=C + LC_ALL=C + '[' -f tools/function.sh ']' + . tools/function.sh + '[' -z ']' + usage + echo 'Usage: mkxpud <option> [<project codename>] - Image Generator for xPUD
Attachments (3)
- 10-04-20_ASDF_Automated_Online_Fingerpointing_for_Hadoop_CMU_PDL.pdf (687.2 KB) - added by jazz 15 years ago.
- 10-04-20_andy_konwinski_x-tracing_hadoop.pdf (794.8 KB) - added by jazz 15 years ago.
- debian-uds-m.png (42.0 KB) - added by jazz 15 years ago.
Download all attachments as: .zip