Hello Dirk, Sorry, I was out all weekend (home Sunday, but preparing a presentation) and out all day Monday.
See below ... On Sunday 16 December 2007 02:25, Dirk Bartley wrote: > On Sun, 2007-12-02 at 18:46 +0100, Kern Sibbald wrote: > > Hello Dirk, > > > > On Sunday 02 December 2007 18:30, Dirk Bartley wrote: > > > Greetings Kern and Developers > > > > > > Both my work and home email clients are now not working sending mail > > > Directly to Kern. So now I'm required to use the devel lists to > > > communicate, which is probably a good thing. > > > > > > I got distracted with a project for myself at work. It was printing > > > with barcode printers. We have a few different barcode printers and I > > > wanted to get the subroutines which print lines, text and barcodes to > > > behave the same no matter what barcode printer I am creating a program > > > for. It's been kind of fun but took longer than I thought. I was > > > hoping to just spend a weekend but it ended up taking longer. > > > > > > Anyways, I think the next thing you are interested in is a status dir > > > class. I think I'm ready now to work on this. > > > > > > So for starters, a status dir page looks like it could have 4 sections > > > to be like the text based status dir commands. > > > > > > 1) Miscelaneous information in a text window. > > > Looks like a status dir command always returns some basics about the > > > director like: > > > srvalum3-dir Version: 2.3.6 (19 October 2007) x86_64-pc-linux-gnu > > > gentoo > > > Daemon started 04-Nov-07 11:51, 273 Jobs run since started. > > > Heap: heap=12,808,192 smbytes=218,726 max_bytes=10,216,676 bufs=676 > > > max_bufs=2,717 > > > > > > 2) Scheduled jobs in a table > > > > > > 3) Running jobs in a table > > > > > > 4) Recently Terminated jobs in a table > > > > > > Should I look at the portion of base code that responds to a status dir > > > command to see the sql statements are. Can you point me towards the > > > file that would have those sql statements so I am mimicking the status > > > dir command as much as possible. There is also the possibility of > > > having a new dot command that would return information like the .sql > > > command. > > > > I don't think that the "status dir" does any sql commands, though perhaps > > I forgot ... > > > > The code for it is in src/dird/ua_status.c > > > > There is already something like a .qstatus command (I forget the exact > > command), which is used by the wx-widget tray monitor. However, I think > > we might want to implement a new dot command that essentially returns all > > the current information, but in a format that is a bit easier to parse by > > a program. > > I've got the framework begun for the status dir page. I have looked at > the src/dird/ua_status.c file and am convinced that I will not be able > to accomplish the task with sql type commands. I tried .qstatus and > received "qstatus: is an invalid command." > > Please advise. A new dot command returning the desired info would be > useful. Yes, the qstatus has a very particular format used to find the list of the current jobs or the status of the last terminated job. qstatus dir current or qstatus dir last so it won't be very useful for what you want. Either you will need to parse the existing status command, or I suggest you specifically implement a .status command that returns basically all the same information, but in a format that is much easier to parse -- much like the existing dot commands. Best regards, Kern > > Thank You very Kindly > > Dirk > > > Best regards, > > > > Kern > > > > > Let me know! > > > > > > Dirk > > > > > > > > > ----------------------------------------------------------------------- > > >-- SF.Net email is sponsored by: The Future of Linux Business White > > > Paper from Novell. From the desktop to the data center, Linux is going > > > mainstream. Let it simplify your IT future. > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > _______________________________________________ > > > Bacula-devel mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/bacula-devel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Bacula-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bacula-devel ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
