Hi Dan, The correct way to do this would be like this:
::walk proc | ::head -n $[<n] Unfortunately, that crashes mdb... The head dcmd only accepts a string argument for -n. A good RFE would be to allow it to accept a number (and a good bug would be for it to perform some error checking; see 6556507). Adam On Thu, May 10, 2007 at 06:11:03PM -0700, Dan Mick wrote: > <var doesn't seem to work in dcmd arguments. Say, in mdb -k: > > 10>n > ::walk proc | head -n <n > > says > > Usage: head -num|-n num > mdb: try '::help head' for more information > > Is that intentional? Is there a workaround? > _______________________________________________ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl