Operating System - HP-UX
1822783 Members
4023 Online
109645 Solutions
New Discussion юеВ

getting complete info using ps

 
diwakar_4
Frequent Advisor

getting complete info using ps

Hi all,

I am running one program from dir
/usr/symology/syst/menus
*****************************************
Progarm1:
/usr/symology/acucobol72/bin/runcbl -f -c $SYMCFG/symology.cfg $SYMPRG/SYMBATCH.acu 000007
Program2:
/usr/symology/acucobol72/bin/runcbl -f -c $SYMCFG/symology.cfg $SYMPRG/SYMBATCH.acu 000008
******************************************

After that when i do
ps -eaf | grep 'runcbl -f -c'| grep '/usr/symology/syst/menus'

i get 2 processes result as:

/usr/symology/acucobol72/bin/runcbl -f -c /usr/symology/syst/me

/usr/symology/acucobol72/bin/runcbl -f -c /usr/symology/syst/me

Now how can i know which process running on 000007 and which one on 000008.
Can we have any cmd whcih gives more details ?

Also it is not showing complete path name and cuting at 'me' rathar than menus.

Thanks
3 REPLIES 3
avizen9
Esteemed Contributor

Re: getting complete info using ps

Hello Diwakar,
here is below script which i found from one of thread, this may help you,

http://www.hpux.ws/?p=8
Kenan Erdey
Honored Contributor

Re: getting complete info using ps

Hi,

ps -efx shows full paths.

Kenan.
Computers have lots of memory but no imagination
VK2COT
Honored Contributor

Re: getting complete info using ps

Hello,

Apart from various ps(1M) command options,
there is also a configuration file
/etc/default/ps in recent versions of HP-UX.

By default, here are the contents of the file:

##################################################################
# #
# /etc/default/ps configuration file #
# Set the default COMMAND line width. Any value between 64-1020 #
# can be set. #
# #
##################################################################
DEFAULT_CMD_LINE_WIDTH=128

Cheers,

VK2COT
VK2COT - Dusan Baljevic