[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] HP-UX 10.20 hobbitclient-hpux.sh issue







T.J. Yang





From: "T.J. Yang" <tj_yang (at) hotmail.com>
Reply-To: hobbit (at) hswn.dk
To: hobbit (at) hswn.dk
Subject: [hobbit] HP-UX 10.20 hobbitclient-hpux.sh issue
Date: Wed, 29 Nov 2006 22:48:41 -0600

1. following ps command works on hp-ux 11.11 but not on hpux 10.20
root (at) test> grep UNIX95 hobbitclient-hp-ux.sh
UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
root (at) test>

Henrik, can you verify following change for hpux 10.20, there is no "x"(extented) option of ps on 10.20. instead I use "l" option instead. the output of columns order looks the same on both 10.20 and 11.11.


Please include this one character change if you confirm the fix

root (at) test> ps -Al -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
 PID  PPID USER        STIME S PRI %CPU     TIME     VSZ COMMAND
   0     0 root      Oct 20  S 128    0 00:00:03       0 swapper
   1     0 root      Oct 20  S 168    0 00:00:24     344 init
   2     0 root      Oct 20  S 128    0 00:00:02       0 vhand
   3     0 root      Oct 20  S 128    0 00:09:47       0 statdaemon
   4     0 root      Oct 20  S 128    0 00:01:55       0 unhashdaemon
   7     0 root      Oct 20  S  31    0 00:00:00       0 ttisr
<snip>

root (at) hp11.11> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
PID PPID USER STIME S PRI %CPU TIME VSZ COMMAND
0 0 root Apr 17 S 127 0.02 05:14 0 swapper
8 0 root Apr 17 S 100 0.02 00:00 0 supsched
9 0 root Apr 17 S 100 0.00 00:00 0 strmem
10 0 root Apr 17 S 100 0.00 00:00 0 strweld
11 0 root Apr 17 S 100 0.00 00:00 0 strfreebd
2 0 root Apr 17 S 128 0.02 06:58 0 vhand
3 0 root Apr 17 S 128 0.02 19:21 0 statdaemon



2. Here is the checking on a hp-ux 10.20.
root (at) test> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
root (at) test> echo $UNIX95
1
root (at) test> ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args ps: illegal option -- x
usage: ps [-aAcdefHjlOPX] [-C cmdlist] [-g sidlist] [-G gidlist]
[-n namelist] [-o format] [-p proclist] [-R prmgrplist] [-s sidlist]
[-t termlist] [-u uidlist] [-U uidlist]
root (at) test> uname -a
HP-UX test B.10.20 A 9000/785 2002377375 two-user license
root (at) test> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
ps: illegal option -- x
usage: ps [-aAcdefHjlOPX] [-C cmdlist] [-g sidlist] [-G gidlist]
[-n namelist] [-o format] [-p proclist] [-R prmgrplist] [-s sidlist]
[-t termlist] [-u uidlist] [-U uidlist]
root (at) test>




T.J. Yang

_________________________________________________________________
Stay up-to-date with your friends through the Windows Live Spaces friends list. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk



To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe (at) hswn.dk



_________________________________________________________________
Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG