(1) Assume you write your
DTrace script on
Windows and run it on
\r\n as EOL while
\n, if you execute it directly, following complain will occur:
: No such file or directory
The solution is to apply
dos2unix to convert file format before playing it.
(2) The shebang line of script only accepts
1 argument, and
-s option must be the last. For example:
Will generate following error:
dtrace: failed to open q: No such file or directory
#!/usr/sbin/dtrace -qs” will be OK. To make additional options take effect, please use
#pragma D option ...