oxide54 Posted August 9, 2012 Posted August 9, 2012 Hi can i get command reporter dot exe to output csv to stdout?
jinnantonnixx Posted August 9, 2012 Posted August 9, 2012 (edited) I haven't done much with Commandreporter, but the help screen says this: The OUTPUT Parameter is optional, if left out the system will output the results in standard xml to the console. If it's outputting to console, it should be possible to pipe it further, if need be. Edited August 9, 2012 by jinnantonnixx
oxide54 Posted August 9, 2012 Author Posted August 9, 2012 yeh i've seen that, it seems i can export xml to stdout or csv if i specify a file. i was rather hoping csv to stdout as i'm calling it from another program so i was just trying to avoid ever generating a temporary file given it has kids names + dobs in.
oxide54 Posted August 9, 2012 Author Posted August 9, 2012 i could parse the xml, but the csv parsing code is so much simplier. and its already written!
rpwillis Posted August 9, 2012 Posted August 9, 2012 Hi can i get command reporter dot exe to output csv to stdout? No, csv output is only to file. You might be able to find a utility which can take xml input on stdin and convert to csv though.
rpwillis Posted August 9, 2012 Posted August 9, 2012 i could parse the xml, but the csv parsing code is so much simplier. and its already written! Personally I think working with xml is much easier. Amost every language has apis for xml documents which tell you if it's well formed and valid. CSV parsing is always dodgy due to the number of different formats it comes in. Especially when you start getting separators (,"') embedded in the data values. 1
oxide54 Posted August 9, 2012 Author Posted August 9, 2012 i do agree, but we where only put on this earth for a certain number of years! on a serious note though, we are a happy customer of yours Richard! 1
oxide54 Posted October 23, 2012 Author Posted October 23, 2012 definitely coming round to your way of thinking richard, the program has evolved from a basic one time tool to something with a decent gui that will be used time and time again, and the next step is definitely to change the SIMS reports to XML. Having said that I don't regret starting with CSV.
bantonia Posted December 10, 2012 Posted December 10, 2012 Hi, I know this thread may be a bit old but I've written some software which enables reports to be run remotely. It uses a Glassfish server on a SIMS workstation or server and provides a WSDL file which can be imported into your software to create the artifacts required for the communication. The only problems so far encountered is the speed reports are run and if the size of the results generated by the report is very large. Software can be downloaded from: http://www.beaconhillcott.net Regards
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now