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>
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://spa...