(转载)DTrace: command line parameters in scripting
发表于:2007-06-08来源:作者:点击数:
标签:
DTrace: command line parameters in scripting 转载自:http://solaris.reys.net/english/archives/62-DTrace.html When you're writing a DTrace script, often you'd like to pass someparameter in command line. Such an easy task might be really har
DTrace: command line parameters in scripting
转载自:http://solaris.reys.net/english/archives/62-DTrace.html
When you're writing a DTrace script, often you'd like to pass some
parameter in command line. Such an easy task might be really hard
unless you read a docs.sun.com section about DTrace scripting, particularly a section about comman line parameters macros.
As with
sh or
bash, you can a
clearcase/" target="_blank" >ccess command line parameters via
..
macroses. But there's a catch. Values of these macroses should match a
certain definition - a number, an identifier or a string. If there
isn't a match here, you'll get an error.
Let's start with a simple script.