Operating System - HP-UX
1823067 Members
3236 Online
109645 Solutions
New Discussion юеВ

Re: Berkley ps command for HPUX 11i

 
Ed Freel
New Member

Berkley ps command for HPUX 11i

On Solaris /usr/ucb/bin/ps and AIX ps the Berkley
flag options are available. I'm looking for the "ps e " to print out the environment settings for a process. Is this hidden away somewhere in HP 11i? I also tried to get the environments settings by attaching to the process using gdb but the show env only shows my settings and not the process settings. If there is another way to get this info I would appreciate a pointer. This would help an HP customer know that settings they are passing on to startup command worked.
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: Berkley ps command for HPUX 11i

I think you want; ulimit -a
This shows the environment under which your job starts and which control it size etc.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bruno Ganino
Honored Contributor

Re: Berkley ps command for HPUX 11i

Command "ps -ef" and "top"
Bruno
Torino (Turin) +2H
Ed Freel
New Member

Re: Berkley ps command for HPUX 11i

Let me rephrase my command line usage. The Berkely version I am looking for is
"ps ewwl ". This gives you the full environment field listing. I am interested in the environment settings given to the command at startup. Berkley version does not use "-" flag notation.
John Poff
Honored Contributor

Re: Berkley ps command for HPUX 11i

Hi,

I don't know of any way to get this information in HP-UX, but maybe another guru will have the answer.

We have an old AIX box still running here, so I logged in and tried the command just to see what it looks like. This is pretty cool! I never knew it would do that.

Here is the output just so people will have an idea of what the author is talking about:

>ps eww
PID TTY STAT TIME COMMAND
18760 pts/4 A 0:00 ps eww _=/usr/bin/ps LANG=en_US LOGIN=jpoff NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/jpoff/bin:/usr/bin/X11:/sbin:. LC__FASTMSG=true EDITOR=/usr/bin/vi LOGNAME=jpoff MAIL=/usr/spool/mail/jpoff LOCPATH=/usr/lib/nls/loc USER=jpoff AUTHSTATE=compat SHELL=/usr/bin/ksh ODMDIR=/etc/objrepos HOME=/home/jpoff TERM=vt220 MAILMSG=[YOU HAVE NEW MAIL] PWD=/home/jpoff TZ=EST5EDT A__z=! LOGNAME

27194 pts/4 A 0:00 -ksh TERM=vt220 AUTHSTATE=compat SHELL=/usr/bin/ksh HOME=/home/jpoff USER=jpoff PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin TZ=EST5EDT LANG=en_US LOCPATH=/usr/lib/nls/loc NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat LC__FASTMSG=true ODMDIR=/etc/objrepos LOGNAME=jpoff LOGIN=jpoff


JP