Bacula-users

Re: [Bacula-users] Next Scheduled Jobs as SQL Query?

2016-02-24 16:58:57
Subject: Re: [Bacula-users] Next Scheduled Jobs as SQL Query?
From: Heitor Faria <heitor AT bacula.com DOT br>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 24 Feb 2016 18:55:26 -0300 (BRT)
> Hello :)
> 
> now that i'm going to change my employer, i wanted to leave an easy to use
> Bacula server.
> I've implemented many functions in my php-site. One of them is to show the 
> next
> running jobs via the output of "status dir" from the bconsole.
> 
> This works well, but looks a bit messy..
> 
> I've wondered how the "status dir" command works in detail and if there is a 
> way
> to get a list of the uhm maybe 20 next running jobs via sql suery?!
> So i could display it in a nice table and the implementation would be more 
> easy
> if there is a way to query this.

Hello, Gerwayn: you could make PHP calls a shell script (shell_exec) with 
something like in order to display next scheduled jobs:

echo "status schedule" |bconsole

Of course, you can grep, cut, awk, sort etc. and format the output the way you 
want.

Regards
-- 
======================================================================= 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 
========================================================================

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>