From: John B. <jo...@ma...> - 2003-10-31 18:27: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 Other than the name (test2.c) being bad (I'd like to call it rlib.c = <grin>) it's very generic, and ready to go. =20 I don't see any obvious changes to make to it, other than nice-to-haves = like --option style options on the command line. =20 Plus, I didn't know what you'd want to name it, so that's why I left it = as test2.c -- it compiles with your tests/Makefile, so it's easy for = you to decide to call it something else and just modify the Makefile to = compile it with that new name. -john > - 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. > >=20 > > The source code is attached as "test2.c". If you replace = tests/test2.c with this, and > "make test2" you'll have it.=20 > >=20 > > When you run it, you'll see: > >=20 > > [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 > >=20 > > Here's a simple example of it in use: > >=20 > > ./test2 localhost root pass magnatune report3.xml html "SELECT = artist, album, FROM > visa" >test2.html > >=20 > > You're welcome to include this in the rlib distribution -- it seems = really handy to > me. > >=20 > > -john > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Rlib-users mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-users |