as follows, ps-ef | grep tproxy | grep-v "grep"
command will get tproxy process information,
user00 1561 1 0 Apr03 ? 00:01:00 ./tproxy --id=1.1.0.6 --port=6001 --conf-file=../etc/proxy.xml --sys-file=../etc/tproxy_sys.xml --env-type=new_version --daemon start
user00 1566 1 0 Apr03 ? 00:01:00 ./tproxy --id=1.1.1.6 --port=6002 --conf-file=../etc/proxy.xml --sys-file=../etc/tproxy_sys.xml --env-type=new_version --daemon start
are the two outputs shown above, which now need to be further split into two pieces of data.
ps-ef | grep tproxy | grep-v "grep" | awk-F "n""{print $1}"
awk