To view all process which are associated with a user terminal using ps command
I am generating the following output using ps command.
30535 ? 0:00 sshd:
30536 pts/67 0:00 ps
30537 pts/67 0:00 awk
30627 ? 0:00 /sbin/udevd
30651 ? 2:17 /usr/libexec/udisks-daemon
30658 ? 2:46 udisks-daemon:
The ps command is as follows:
$ ps axl | awk -v "min=500" -v "max=60000" '{ if ( $3 >= min && $3 <=max ) print $3 , $11 , $12 , $13 }'
From the above output , I want only the process ids which are associated with a terminal . How can I generate that output.
|