摘要: Debugging bash scriptsBash can help us to find problems in bash scripts in some ways. You don't expect too much or gdb like environment but it has a few helpful options.Running a shell script with -x option:bash -x script.shOr you can use set builtin function in shell script:set -x # display exe 阅读全文
posted @ 2014-02-12 20:44 规格严格-功夫到家 阅读(220) 评论(0) 推荐(0)
摘要: If you want to record your root ssh session create a file .bash_profile . and copy below line by line change the email address where you want to recive the SSH log mail.nano /root/.bash_profileCURDATE=$(date +%F-%T)RAND=$RANDOMEMAILS=”user@example.com otherrecipient@example.com”script -f -q /tmp/ses 阅读全文
posted @ 2014-02-12 20:38 规格严格-功夫到家 阅读(203) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/ithomer/article/details/6727581?reload 阅读全文
posted @ 2014-02-12 20:35 规格严格-功夫到家 阅读(137) 评论(0) 推荐(0)
摘要: http://tldp.org/HOWTO/Process-Accounting/index.html 阅读全文
posted @ 2014-02-12 20:22 规格严格-功夫到家 阅读(172) 评论(0) 推荐(0)