How obtain the running process with absolute path name from ps command
13598 ? Ssl 0:00 /opt/something --run-id 2 -n /home/laks/f1 -l l.log
I need the output as -
/opt/something --run-id 2 -n /home/laks/f1 -l l.log
How obtain the running process with absolute path name from ps command
13598 ? Ssl 0:00 /opt/something --run-id 2 -n /home/laks/f1 -l l.log
I need the output as -
/opt/something --run-id 2 -n /home/laks/f1 -l l.log
which `ps aux | cut -c 66- | cut -d\ -f 1`
will list absolute paths of all of the processes, you could work with that.
If i understand the question correctly, just use awk
.
ps aux | awk '{print $11}'
Otherwise just do man awk
and look at the field separator.