Hi
I need to get all the users from my environment using a particular service. The user can be found out by using MXJ_CLIENT_LOGIN in ps -auxwww.
The output of this is like below:-
The Client_login tag is not fixed, it comes in random order. I need the output in the following format, which should not depend on the order where CLIENT_LOGIN(See above output) comes:-
Thanks
---------- Post updated at 04:12 AM ---------- Previous update was at 04:10 AM ----------
The desired output is
I need to get all the users from my environment using a particular service. The user can be found out by using MXJ_CLIENT_LOGIN in ps -auxwww.
The output of this is like below:-
Code:
ps -auxwww
5012 32740 1.0 0.6 836600 429260 ? Sl 10:11 0:29 /SHOW:Y /MXJ_FILE:client.xml /MXJ_NT:1 /MXJ_TIME_OUT:60000 /MXJ_CLIENT_HOST:abc /MXJ_CLIENT_LOGIN:Raj /MXJ_CLIENT_IPADDR:x.x.x.x /IPADDR:y.y.y.y /MXJ_CLIENT_IPADDR_LIST:x.x.x.x /MXJ_SITE_NAME:xx /MXJ_LOGGER_FILE:p /MXJ_HOSTNAME:xx
5012 31584 0.0 0.6 819500 419324 ? Sl May22 3:06 /SHOW:Y /MXJ_FILE:client.xml /MXJ_CLIENT_LOGIN:Raj999 /MXJ_NT:1 /MXJ_TIME_OUT:60000 /MXJ_CLIENT_HOST:abc /MXJ_CLIENT_IPADDR:x.x.x.x /IPADDR:y.y.y.y /MXJ_CLIENT_IPADDR_LIST:x.x.x.x /MXJ_SITE_NAME:xx /MXJ_LOGGER_FILE:p /MXJ_HOSTNAME:xx
Code:
5012 32740 Raj999
---------- Post updated at 04:12 AM ---------- Previous update was at 04:10 AM ----------
The desired output is
Code:
5012 32740 Raj
5012 31584 Raj999