Is node_agent real executable or shell script? If it is a shell script, then executable name will be sh (or bash, ksh, etc. - whatever your shell is), so Process.Count(node_agent) will always return 0 - because it will look for executable named node_agent. You can find processes by command line using Process.CountEx, like this:
Process.CountEx(".*","^node_agent")
Please note, that Process.CountEx uses regular expressions to find matching processes.
Best regards,
Victor
Process.CountEx(".*","^node_agent")
Please note, that Process.CountEx uses regular expressions to find matching processes.
Best regards,
Victor