Hi...on a solaris system i have certain directories that contain c codes....wat i need to do is write a shell script(or C code) to execute those c codes within the directories and compare there output to certain files....
could anyone give me a start on this....some useful links on scripting are welcome...
also how to chk the memory and time taken by those codes when executed through this script?...
August 25th, 2006, 09:27 PM
You may want to use Perl, but that's my own personal bias :p
This is a good reference for shell scripting, probably contains what you are looking for. Its advanced stuff that may be helpful, you're simply:
1. searching every directory for *.c files
2. compiling and executing the *.c files
3. storing the output and comparing them
It doesn't sound too hard, the hardest part would be getting the output (only because I don't know how to do it).