Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpfcso!hpfcdc!rer From: rer@hpfcdc.HP.COM (Rob Robason) Newsgroups: comp.sys.hp Subject: Re: ps lists command parameters Message-ID: <5570384@hpfcdc.HP.COM> Date: 8 Mar 90 22:24:12 GMT References: <686@mmlai.UUCP> Organization: HP Ft. Collins, Co. Lines: 17 > Does anyone know how to stop ps from listing the parameters > of a process owned by another user? Some commands will > be put in square brackets, which means ps couldn't get the > parameters. Is there a way to force this? Thanks for any help! A word of caution about use of the techniques described in previous responses to obliterate the contents of argv[]: In the 7.0 release, due to some changes in the way ps gets its data, the information printed by default is NOT what is CURRENTLY in argv, but what was there at exec() time. To get ps to print the current values, you have to use the -m option. This makes the technique less useful. You might note that only the -f option causes the argv[] stuff to be printed, everything else, including the very similar -l option, prints only the command name. -l might be the right solution for this case. Rob