- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- PS -ef command doesn't show all the details
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
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-15-2006 02:56 PM
тАО05-15-2006 02:56 PM
When I run a command "ps -ef | grep monitor" and I get part of the message on one server. However, on another server I get the complete all the details. Currently, we are running RHAS 3.0 -
Please let me know if you know the answer.
Thanks,
J
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 06:19 PM
тАО05-15-2006 06:19 PM
SolutionIf the partial message looks like it's the wrapped part of a long line, it might be that on one server, the "monitor" process is started with the full path and on the other server without. With the full path, the command name might be long enough to wrap to the next line. And grep picks just the line that has the keyword, not the one before it...
Still, on Linux, ps is often smart enough to detect if its output is being piped and not wrap the lines in that case.
Also check that there are no aliases or shell function definitions that would add some extra options to the ps command line: type "alias" to see a list of all shell aliases and "typeset -f" to see a list of defined (bash) shell functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 12:51 AM
тАО05-16-2006 12:51 AM
Re: PS -ef command doesn't show all the details
Regards,
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 01:01 AM
тАО05-16-2006 01:01 AM
Re: PS -ef command doesn't show all the details
export COLUMNS=300
ps -ef |grep monitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 08:16 AM
тАО05-16-2006 08:16 AM
Re: PS -ef command doesn't show all the details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 03:37 PM
тАО05-16-2006 03:37 PM
Re: PS -ef command doesn't show all the details
~ Many Thanks,
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 10:18 PM
тАО05-16-2006 10:18 PM
Re: PS -ef command doesn't show all the details
This annoyed me for years and I'm pretty sure I tried the COLUMNS option. What you want is the w option but note that these accumulate (up to a maximum of maybe 3?). So, one of my standard aliases on linux is:
alias psw='ps -auxfwww'
And I think this is about as much as you can get. Now if someone can tell me the equivalent on HP-UX and/or Solaris (across different versions)...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2007 03:44 AM
тАО02-23-2007 03:44 AM