in reply to Persist shell app

Yet another approach is to whip up an XS interface to your ? C based unix application and use mod_perl to create a persistent instance as you might do with a DB connection. See Swish::API for a typical example used as the interface to the swish-e search engine to avoid forking new instances. This is almost certainly the most complex solution and would probably only be worthwhile if speed is a major issue.