How to get a running process with an absolute path name from ps command
13598 ? Ssl 0:00 /opt/something --run-id 2 -n /home/laks/f1 -l l.log
I need a conclusion like -
/opt/something --run-id 2 -n /home/laks/f1 -l l.log
If I understand the question correctly, just use awk.
awk
ps aux | awk '{print $11}'
Otherwise, just man awklook at the field separator.
man awk
Using custom format in ps:
ps
ps xa -o cmd
, ,
cat/proc/13598/cmdline
which `ps aux | cut -c 66- | cut -d\ -f 1`
, .
Source: https://habr.com/ru/post/1739978/More articles:Jquery form submit () call back not working - jqueryHow to post in WordPress using C #? - c #Zoom image to pixel level - language-agnosticActivator.CreateInstance vs Factory Template - c #Connection string sharing - c #How to create thumbnails from video in WMV format - c #Finding all characters between brackets with .NET Regex - c #How is PHPSESSID generated? - phpWordpress, Π³Π΄Π΅ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½ "admin_url"? - phpIs there a way to find the week number for a year using PHP? - dateAll Articles