- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: CMD field of ps -ef | grep <ProcessName> resri...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 07:43 PM
тАО05-23-2007 07:43 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 10:33 PM
тАО05-23-2007 10:33 PM