Jari Fredriksson wrote: >> 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 $* > 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 ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users