On 06/07/2011 05:52 PM, Tim Gustafson wrote: >> Can't you spawn bconsole from the web application? That is what most >> of the other web apps do. > [...] > I'm hoping that there might be a protocol that cuts out all the screen > parsing and instead lets me just do something like: > > 1. Connect to the bacula-dir daemon > 2. Authenticate > 3. Send a command like "show status client blah.foo.bar-fd" > > and have that return machine-parse-able status information, rather than > human-readable information. You can skip the "parse the list of clients" step by just sending "status client=blah.foo.bar-fd" directly to bconsole, but I personally would also love to see more easily machine-parseable output - just adding to bconsole's commands themselves an "out=xml" or "out=json" or similar modifier that returns the information in an easier to parse form instead of the default "human readable" form would be extremely useful to me.
(I wrote a web-interface script that talks to bconsole. Getting the response isn't really that hard, but I do end up going through a series of regex's to pick out the individual bits of information that I want from the output, which is obviously kind of a pain.) ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users