So far, I have written the following unix command:
ps -Ajc | grep loginwindow | cut -c 16-20 | sed 's/ //g'
This captures the loginwindow process, filters it with cut and sed to return the loginwindow process number.
I would like to know how to use the number obtained in the process.
Thanks.
source share