From: Bob D. <bd...@si...> - 2003-10-31 16:58:30
|
Ok.. sounds like you guys want file output... I think thats a good idea... the rlib_spool simply writes a stored buffer out stdout... I'll give you guys a way to get to that buffer and its length - bob On Wed, 2003-10-29 at 16:04, Andrew Cotter wrote: > The command line will output to a file then? Very nice.. That will do > wonders for scheduling reports to run in batches. > > Thanks!!! > > Still no luck with PHP? > > Andrew > > -----Original Message----- > From: rli...@li... > [mailto:rli...@li...]On Behalf Of John Buckman > Sent: Wednesday, October 29, 2003 3:25 PM > To: rli...@li... > Subject: [Rlib-users] here it is... command line version of rlib > > > 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 > > > > ------------------------------------------------------- > 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 > |