Answer the question
In order to leave comments, you need to log in
How to write a condition that would be true until the connection falls off BASH?
Good day, guys, tell me how to write the correct condition so that it is fulfilled until all connections from the user fall off on BASH
Here is the output of the connections
# ps aux | grep rdb_inet
firebird 10057 0.4 0.1 481164 262752 ? Ssl 07:29 0:52 /opt/RedDatabase/bin/rdb_inet_server
firebird 11343 0.5 0.1 384848 171916 ? Ssl 08:19 0:51 /opt/RedDatabase/bin/rdb_inet_server
root 19387 0.0 0.0 103384 848 pts/0 S+ 11:01 0:00 grep rdb_inet
if there is a connection from the firebird user, then
/opt/RedDatabase/bin should be executed /isql ncore-db -i /home/scripts/rdb_inet pkill
-15 -f rdb_inet
if there are no processes from the firebird user and, accordingly, only
root 19387 0.0 0.0 103384 848 pts/0 S+ 11:01 0:00 grep rdb_inet,
then go to the next step
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question