Hi,
There is a file having a list of running PIDs (pid_process) and another file having a list of registered PIDs (pid_regieter).
I want to check if:-
a) there is at least one running PID that does not correspond to a
registered PID (listing the PID not registered in the file)
b) there is at least one registered PID that doesn't correspond to a running
PID (listing the PID missing).
Any inputs please.
Thanks a lot in advance.
vino
2
Are those PID's sorted ? If then
comm -3 pid_process pid_regieter
See man comm for more details.