Bacula-users

Re: [Bacula-users] Setting variables directly from Bacula, is possible?

2009-06-12 13:09:12
Subject: Re: [Bacula-users] Setting variables directly from Bacula, is possible?
From: "Jari Fredriksson" <jarif AT iki DOT fi>
To: "Reynier Perez Mira" <rperezm AT uci DOT cu>, <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 12 Jun 2009 20:02:06 +0300
> Hi every:
> I have Bacula configured for send me a beeper in case a
> Job fail. This script (make in Perl) needs Internet
> connection. Now I want to set the environment var
> http_proxy and unset directly from Bacula. Is this
> possible? I mean for example, following a simple logic:  
> 
> if (job_fail)
>  set http_proxy = some_ip:some_port
>  send the beeper trough send_beeper.pl script
>  set http_proxy =
> 
> I need this because some others applications have a local
> repository and If I want to install something it fails
> because the proxy is on.  
> 
> Any help on this?

You can always create a send_bacula_beeper.sh which contains

#!/bin/sh
http_proxy=some_ip:some_port
send_beeper.pl $*

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users