ps -c num bug or feature ?

Hans Buurman hans at duttnph.tudelft.nl
Tue Jan 16 21:15:12 AEST 1990


In article <1990Jan15.094339.4254 at athena.mit.edu> jik at athena.mit.edu (Jonathan I. Kamens) writes:
>
>In article <1072 at dutrun.UUCP>, hans at duttnph.tudelft.nl (Hans Buurman) writes:
>> 
>> I don't understand the following behaviour of ps (SunOs 4.0.1):
>> 
>> hans55> ps -c 23706
>> ps: cannot open 23706: No such file or directory

>  The manual also says (at the top):
>
>     SYNOPSIS
>          ps [ acegklnstuvwxU# ]
>
>This means that the pid number should be part of the first argument
>passed to ps, not in a second argument.  In other words, you should have typed:
>
>     ps -c23706

Er, yes and no.

You are quite right, ps -c23706 works perfectly.
However, my SunOs 4.0.1 manual says:

SYNOPSIS
     ps [ -acCegklnrStuvwxU ] [ num ]
          [ kernel_name ] [ c_dump_file ] [ swap_file ]

Sun Release 4.0   Last change: 14 January 1988                  1

So obviously, the manual is incorrect.

You go on to explain why exactly we get this error message.
Your explanation is no doubt correct, but again, you quote from
a different manual. Which manual are you using ?

Thanks for the reply,

	Hans

>Jonathan Kamens			              USnail:
>MIT Project Athena				11 Ashford Terrace
>jik at Athena.MIT.EDU				Allston, MA  02134
>Office: 617-253-8495			      Home: 617-782-0710


========================================================================
Hans Buurman               | hans at duttnph.tudelft.nl | hans at duttnph.UUCP
Pattern Recognition Group  | 31-(0)15-78 46 94       |
Faculty of Applied Physics | Delft University of Technology



More information about the Comp.unix.questions mailing list