Tag Archives: shell

Bash Hacking – bash2, add setting CPU affinity support to the Bash

This post is NOT initially designed for how to hack Bash. But it does tell the truth that hacking Bash is not that hard, by adding a useful feature to Bash itself – setting CPU affinity support. Have fun and … Continue reading

Posted in OS, Programming | Tagged , , , , , , | 4 Comments

trap – signal handling in shell

Ways for shell to create ‘multi-thread’ scripts (用shell写多线程脚本) An enhancement for ‘tod‘(利用trap改进多线程shell脚本) Yes, the way to write ‘multi-thread’ for shell is using ‘&’ to submit background job. We will use ‘tod’ for example: In ‘tod’, there are in total 3 … Continue reading

Posted in Programming | Tagged , , , , , | 2 Comments