- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- CMD field of ps -ef | grep <ProcessName> resricted...
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 07:43 PM
05-23-2007 07:43 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 08:36 PM
05-23-2007 08:36 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
Using 'ps -elf' will show the long version of the cmdline.
In either case, if outputing to the TTY, they'll be limited to COLUMNS width. When running in a pipe however, they shouldn't be limited, thus you should get more in a pipe.
i.e.: COLUMNS=132
ps -elf -> copy/paste 'clamav-milter' line:
clamav 18961 1 0 Apr13 ? 00:00:27 /usr/sbin/clamav-milter --quiet --external --dont-wait --force-scan --server=localho
ps -ef | grep clamav-milter -> output:
clamav 18961 1 0 Apr13 ? 00:00:27 /usr/sbin/clamav-milter --quiet --external --dont-wait --force-scan --server=localhost --pidfile=/var/run/clamav/clamav-milter.pid local:/var/run/clamav/clamav-milter.sock
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 08:49 PM
05-23-2007 08:49 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
Actually If I do the
#ps -ef| grep
output shows only 32 characters in CMD column.
#ps -ef is giving correct output
But once I use pipe and grep its not
I have checked the same in other linux box, But it working there.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 09:05 PM
05-23-2007 09:05 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
from ps(1):
-w Wide output. Use this option twice for unlimited width.
thus:
$ ps -wwef | grep ProcessName
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 09:16 PM
05-23-2007 09:16 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
If I do the
#ps -ef| grep
output shows only 32 characters in CMD column.
I have checked the same in other linux box, But it working there.
I want to do replicate the same settings .
Help highly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 09:36 PM
05-23-2007 09:36 PM
SolutionWhat does 'stty -a' say?
Try this as well:
env COLUMNS= ps -ef | grep <..>
Also try it again using 'ps -elf' instead of just '-ef'.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 09:51 PM
05-23-2007 09:51 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
125
But it is same in both the machine.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 09:56 PM
05-23-2007 09:56 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
Also, what version of 'ps' on both machines (ps -V) ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 10:04 PM
05-23-2007 10:04 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
procps version 2.0.13
(Here it is working)
# ps -V
procps version 2.0.7
(Here not)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 10:33 PM
05-23-2007 10:33 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2007 10:42 PM
05-23-2007 10:42 PM
Re: CMD field of ps -ef | grep <ProcessName> resricted to some 32 Characters only
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP