?
Solved

ps -eo comm

Posted on 2016-08-10
3
Medium Priority
?
63 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 1000 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 1000 total points (awarded by participants)
ID: 41751007
ps -eo args
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month12 days, 6 hours left to enroll

752 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