Home | History | Annotate | Line # | Download | only in Examples
      1 The following explains how to demonstrate the woof.d DTrace script.
      2 
      3 This script is only useful if you have an audio device, /dev/audio. To test
      4 audio, you can run:
      5 
      6 	$ audioplay /usr/share/audio/samples/au/sample.au
      7 
      8 The volume can be adjusted from a few tools, including,
      9 
     10 	$ /usr/dt/bin/sdtaudiocontrol
     11 
     12 ...
     13 
     14 woof.d will bark whenever a new process is created. In order to demonstrate
     15 it, first run the following:
     16 
     17 	# ./woof.d &
     18 
     19 You have now installed the dog (if the dog becomes a nusience, you are
     20 allowed to kill it). Now compare the difference between these recursive
     21 grep commands:
     22 
     23 	$ find /etc -type f -exec grep localhost {} \;
     24 
     25 	$ find /etc -type f -exec grep localhost {} +
     26 
     27 The first find command is the "bad way", the second is the "good way". You
     28 will hear for yourself why this is the case.
     29