Operating System - HP-UX
1833497 Members
2675 Online
110052 Solutions
New Discussion

Re: command size limit with ps -C

 
BORTZMEYER_1
Occasional Advisor

command size limit with ps -C

Hi all !

I have a strange behavior with the ps command with the C flag.

% ps -e | grep ora
8347 ? 00:00 ora_lgwr_RNOT
8451 ? 00:08 ora_ckpt_TELETRY

% UNIX95= ps -C ora_lgwr_RNOT
PID TTY TIME CMD
8347 ? 00:00 ora_lgwr_RNOT

% echo $?
0

% ps -C ora_ckpt_TELETRY
PID TTY TIME CMD

% echo $?
1

% type ps
ps is /usr/bin/ps

% what /usr/bin/ps
/usr/bin/ps:
ps.c $Date: 2001/06/21 13:13:32 $Revision: r11.11/1 PATCH_11.11 (PHCO_24482)
$Revision: @(#) all CUP11.11_BL2001_0717_17 PATCH_11.11 PHCO_24482
Tue Jul 17 14:45:51 PDT 2001 $



If the process command line is more than 15 chars, it seems that the ps command can't display it with the -C flag.

Any idea ?
1 REPLY 1
Robert-Jan Goossens
Honored Contributor

Re: command size limit with ps -C

Hi,

You could check the latest ps patch.

http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_30397&context=hpux:800:11:11

Hope this helps,
Robert-Jan