Solved

ps -eo comm

Posted on 2016-08-10
3
29 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

757 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