You are here:

Focus on Unix

Recent Answers

2009-11-21 Unix/Linux OS - Memory Access by a C/C++ program:

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

2009-11-20 Unix/Linux OS - booting failure:

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

2009-11-16 Unix/Linux OS - multiple arguments to a sciprt in bash:

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

2009-11-15 Unix/Linux OS - multiple argements to script:

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

2009-11-15 Unix/Linux OS - multiple argements to script:

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

Categories

Browse Alphabetically

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