Trịnh Quốc Lâm
New member
How do I know if a jar is running on Linux?
Answer
So there are three four cases:
Answer
So there are three four cases:
- jar is running and grep is in process list -> grep returns 2.
- jar is running and grep is not in process list -> grep returns 1.
- jar is not running and grep is in process list -> grep returns 1.
- jar is not running and grep is not in process list -> grep returns 0.