Main index | Section 8 | Options |
To ease configuration, commands can be put in a file which is processed using ddb as shown in the last synopsis line. An absolute pathname must be used. The file will be read line by line and applied as arguments to the ddb utility. Whitespace at the beginning of lines will be ignored as will lines where the first non-whitespace character is ‘#’.
capture
[ | |
capture
[ | |
script scriptname | |
Print the script named scriptname. | |
script scriptname=script | |
Define a script named scriptname. As many scripts contain characters interpreted in special ways by the shell, it is advisable to enclose script in quotes. | |
scripts | |
List currently defined scripts. | |
unscript scriptname | |
Delete the script named scriptname. | |
ddb script kdb.enter.break="show pcpu; bt"
The following example will delete the script:
ddb unscript kdb.enter.break
For further examples, see the ddb(4) and textdump(4) manual pages.
DDB (8) | December 24, 2008 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.