The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

command_doc - Scripting system commands in an OpenOffice.org document

SYNOPSIS

This sample script triggers an external program each time a given string is found in a given OpenOffice.org Writer document

usage : command_doc filename -command "command" -trigger "trigger_string"

The "command" option is executed using the shell (so it depends on the target program name and the operating system) If the command is successful, the search string is replaced by "PASSED"; in case of failure, there is no replacement

The main goal of this small program is to demonstrate the possibility to control a business process with the content of an OpenOffice.org document.