- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with truncation using ps
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
Forums
Discussions
Discussions
Discussions
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
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
04-09-2001 02:36 AM
04-09-2001 02:36 AM
Problems with truncation using ps
I am writing a v simple shell script to check that several known processes are running. eg j_event_handler.exe
I am basing the script on the following syntax:
ps -e|grep j_event_handler.exe
The problem is that the output is truncated to 14 chars (see middle entry below) This is not specific enough for us.
4918 pts/tA 0:00 telnetd
8386 pts/tI 0:00 j_event_handle
8536 pts/tr 0:00 g_orderproc.ex
I have tried other formats of ps but with similar probs.
We use HP-UX11, Korn Shell, and Reflections terminal Emulation.
If anyone knows how to get round this I would be v . grateful
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 02:58 AM
04-09-2001 02:58 AM
Re: Problems with truncation using ps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 03:33 AM
04-09-2001 03:33 AM
Re: Problems with truncation using ps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 03:36 AM
04-09-2001 03:36 AM
Re: Problems with truncation using ps
You are stuck with what you have. As the man pages for 'ps' note:
"Only a subset of the command line is saved by the kernel; as much of the command line will be displayed as is available".
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 03:47 AM
04-09-2001 03:47 AM
Re: Problems with truncation using ps
This is more of a symptom of ps -e.
As an alternate, try ps -ef.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 04:31 AM
04-09-2001 04:31 AM
Re: Problems with truncation using ps
"Set the environment variable UNIX95=. Then issue the ps -eoruser,vsz,pid,args command. This will list more of the args command
Have Fun."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 04:55 AM
04-09-2001 04:55 AM
Re: Problems with truncation using ps
export UNIX95=true
ps -H
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 05:19 AM
04-09-2001 05:19 AM
Re: Problems with truncation using ps
Thanks Federico. With your help, I tried the following:
export UNIX95=true
ps -eoargs
It leads to the output shown below
/edp/ingres_apps/converted/planning/compiled/j_event_handler
Ie Although I have now restricted the columns output, it is still truncating (the actual name is j_event_handler.exe.
Pooh