From: Bob D. <bd...@si...> - 2003-10-31 16:57:18
|
Maybe.. I need to look at it a tad closer.. but I have 1000's of emails to get to after being away 6 days.... I was hoping python/perl bindings would be the command line version of rlib... but If you want to clean up test2, call it something else and make it more generic I would accept it - bob On Wed, 2003-10-29 at 15:24, John Buckman wrote: > I've written a command line version of rlib. Since most of the report definition is in the xml file, all that's left are db connection settings, xml filename, sql query, and output type. > > The source code is attached as "test2.c". If you replace tests/test2.c with this, and "make test2" you'll have it. > > When you run it, you'll see: > > [root@www tests]# ./test2 > /opt/tmp/rlib-1.1.2/tests/.libs/lt-test2 requires 7 arguments: hostname username password database xml-filename output-format sql-query > You provided 0 > > Here's a simple example of it in use: > > ./test2 localhost root pass magnatune report3.xml html "SELECT artist, album, FROM visa" >test2.html > > You're welcome to include this in the rlib distribution -- it seems really handy to me. > > -john |