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