change ps command

Hi,

I added a variable to every process, then I want to change the ps(1) command and add a column to it to show each process's new variable. What changes should be done now?
 
mind_hunt3r said:
I added a variable to every process,
Please be a bit more precise. Did you edit the kernel source to add information to PCBs (process control blocks) or something?

mind_hunt3r said:
then I want to change the ps(1) command and add a column to it to show each process's new variable.
If you are skilled enough to do what I think you did, you should also be skilled enough to patch the source code of ps(1) to do what you want. Perhaps if you can describe in more detail what it is you did, we can provide more detailed help.
 
I added
Code:
char* mrn_string
to proc.h but now I don't know what should be changed for PS to show this mrn_string in a new column of the ps command because I'm a beginner in freeBSD FreeBSD and need a little more explanation.
 
Back
Top