I've a UNIX Process running that is waiting for an input. Once it gets the input it processes some information and comes back to waiting for the input.
Sometimes, I've to kill UNIX Processes for System Administration. Before killing this Unix Process, I've to make sure it's waiting at the input (it's ok to kill it then, otherwise it could be updating some files).
How can I determine that?
I've looked at the !ps -s command, but not sure if those stats can be used or how to manipulate them.
If you need more clarification, please let me know.