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. 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: 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
