hakkr has asked for the wisdom of the Perl Monks concerning the following question:
Obviously if you are running scripts at command line via cron etc you cant use Apache::DBI as you are not in a mod_perl environment.
So does this mean every time my cron runs I have to connect? Can I somehow grab a connection out of one of the Apache children? or is the only choice to run scripts as daemons with DBI connect_cached()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command line Persistent DBI connections
by perrin (Chancellor) on Dec 13, 2004 at 16:10 UTC | |
|
Re: Command line Persistent DBI connections
by mpeppler (Vicar) on Dec 13, 2004 at 16:18 UTC | |
|
Re: Command line Persistent DBI connections
by Thilosophy (Curate) on Dec 14, 2004 at 06:06 UTC | |
by hakkr (Chaplain) on Dec 14, 2004 at 10:41 UTC | |
by Thilosophy (Curate) on Dec 15, 2004 at 05:05 UTC | |
by hakkr (Chaplain) on Dec 17, 2004 at 10:08 UTC |