GNU poke is, first and foremost, intended to be used as an interactive editor, either directly on the command line or using a graphical user interface built on it. However, since its conception poke was intended to also provide a suitable and useful foundation on which other programs, the so-called binary utilities, could be written. This chapter shows how to write Poke scripts and programs.
|• Poke Scripts:||Using poke as an interpreter.|
|• Command-Line Arguments:||Handling command-line arguments.|
|• Exiting from Scripts:||Exit with an error status.|
|• Loading pickles as Modules:||Importing pickles in programs.|
|• elfextractor:||An example Poke binary utility.|
|• Filters:||Writing filters for binary data.|