Solved

ps -eo comm

Posted on 2016-08-10
3
36 Views
Last Modified: 2016-08-29
If i run ps -eo comm it lists the process but not the full path of the daemon running. If i run ps -ef | awk '{print $8}' it will print the whole path of the process running but if i put ps -ef | awk '{print $8}' in a script it doesn't print the 8th field. Very strange. Any ideas on redhat how to get just the process with the full path in a script?
0
Comment
Question by:lolaferrari
3 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 250 total points (awarded by participants)
ID: 41750915
ps -ef -o pid,cmd

Open in new window


Is that what you need? If not, man ps, and find the STANDARD FORMAT SPECIFIERS
section to choose columns.

Or maybe
ps -x -o pid,cmd

Open in new window

0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 250 total points (awarded by participants)
ID: 41751007
ps -eo args
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 43
Error installing extension Linux 4 58
Python variable _ manually assigned 9 61
Backup & Restore 3 46
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now