I have this linux box that I need to maintain periodically. To do that, I issue a ps command programmatically and check the running processes.But as shown in the screenshot, sometimes, the ps command does not terminate and return to the prompt, it just stays there, and so my application cannot proceed.It's also obvious that previous ps commands are still running while the current one (i.e. which's output is shown in the screenshot) is also hanged.Does anyone know what could be the problem and how to fix it ?
ps command doesn't return to prompt
process;ps