You are here:
Hi. I'm not entirely clear on what you're asking. Do you want to monitor your own code or some other process on the system? In case #1, I think you can overload "new" and "delete" operators. In C
Things that will help: Knowing the hardware configuration of the disk subsystem (RAID, IDE, SCSI, SAS, etc.) Knowing the base filesystem layout that exists on the disk subsystem. (/root, /usr, /u, etc
Hi. This highly depends on your definition of "feed". Even what you did here can be handled: cat arguments.txt | ./script or even simpler: ./script.sh < arguments.txt The script should do
Hi Karll, You can try using the bash getopts function. Please see the below link- http://bashcurescancer.com/the-60-second-getopts-tutorial.html Or you can parse the file of arguments as given
Here's one way: (echo -e "set -- \c"; cat arguments.txt; cat ./script) | bash Another way is to accumulate the args and create a second (temporary) script and execute it. (echo -e "./script \c"; cat

©2009 About.com, a part of The New York Times Company. All rights reserved.