this might sound bizarre but I am trying to do something and I need some help. I have downloaded the source code of both bash and strace and want to modify both to do a little playing around. I'd like to modify my bash shell so everytime a command is invoked from the command line, not only is the command executed, but it is also straced, and the result of which saved to a file...
So if I was to type
it would be the equivalent of
strace -o outFileName ls
but all done automatically. As far as I can see this only requires two small (he says awaiting a backlash!!) changes to both the bash source and the strace source....
Trouble is, can anyone save me some time and tell me what / where I should be changing?? Both have multiple files, and Ks of lines of code, and I will know what to do once I am in the right place, but the trouble is finding the right place to start!! So can someone tell me what files even to be looking at???
some more info on changes I want to make (to begin with)!!....
bash - hardcode in that every command should be preceded by a call to strace also
strace - hardcode in that every invocation should have its output saved to some file
I can change the genericity of this later - but for now I'd just like to get it working!!