Bacula-users

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

2009-06-15 10:11:24
Subject: Re: [Bacula-users] Setting variables directly from Bacula, is possible?
From: "Jari Fredriksson" <jarif AT iki DOT fi>
To: rperezm AT uci DOT cu
Date: Mon, 15 Jun 2009 16:36:46 +0300 (EEST)
> Jari Fredriksson wrote:
>> You can always create a send_bacula_beeper.sh which contains
>>
>> #!/bin/sh
>> http_proxy=some_ip:some_port
>> send_beeper.pl $*
>>
> Hi:
> I haven't enough knowledge of Bash. I want to use var from Bacula as %n
> and %e.  I create a script as you suggest me.
>
> #!/bin/sh
> http_proxy=some_ip:some_port
> send_beeper.pl $*
> http_proxy=
>
> But how I can pass parameters %n and %e to this script?
> Regards

Just like you do now from Bacula. The parameter $* means 'all parameters',
so the new shell script passes all of its parameters to send_beeper.pl.
Just pass to it the %n and %e in Bacula.




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