Search Results

Search: Posts Made By: Bhagwat
14,622
Posted By Bhagwat
Read ps -ef first two items in two variables
this is one of the way to do in shell script

field1=`ps -ef|grep <some pattern>|grep -v grep|awk '{print $1}'`
field2=`ps -ef|grep <some pattern>|grep -v grep|awk '{print $2}'`
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy