I was interested is using DBI:ProxyServer and DBD::Proxy in combination to access a remote SQLite database, so I coded up what I thought was a perfectly harmless test script to act as a server.

#!/usr/bin/perl -w # Server component of SQLite client/server prototype. use DBI::ProxyServer; { DBI::ProxyServer::main({ clients => [ '192.168.0.115' ], debug => 1, localaddr => '192.168.0.124', localport => 16000, logfile => '/tmp/Server.log', mode => 'fork', pidfile => '/tmp/Server.pid', }, @ARGV); }

Running this produced nothing in the log file (either as a regular user or as root), and netstat -at | grep -i listen did not show me that anything was listening on port 16000.

I haven't defined any clients, since this is just a test setup -- it's wide open (on my LAN, which is safe enough), and I haven't done anything to suggest which databsae this is going to connect to. Has anyone here used this module? Am I making some egregious error?

PS in case anyone else wants to try this module out, note that you'll also need to insatll Net::Daemon and RPC::PIServer, the latter of which is confusingly called PlRPC.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


In reply to DBI::ProxyServer question by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.