diff --git a/tcsfw/shell_commands.py b/tcsfw/shell_commands.py index 2ad1c35..658449e 100644 --- a/tcsfw/shell_commands.py +++ b/tcsfw/shell_commands.py @@ -42,9 +42,11 @@ def process_node(self, node: NetworkNode, data_file: BytesIO, interface: EventIn cmd = line[columns["CM"]].strip() if cmd.startswith("[") and cmd.endswith("]"): continue # kernel thread + cmd_0 = cmd.split()[0] + if cmd_0 == "ps": + continue # ps command itself if self.load_baseline: # learning the processes - cmd_0 = cmd.split()[0] base_ps = os.process_map.setdefault(user, []) if cmd_0 not in base_ps: base_ps.append(f"^{cmd_0}")