Bacula-users

Re: [Bacula-users] file inclusion directive - @|sh - causes error

2008-10-10 14:36:25
Subject: Re: [Bacula-users] file inclusion directive - @|sh - causes error
From: Guy Matz <gmatz AT openfinance DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 10 Oct 2008 14:33:06 -0400
ahhh . . .
from http://wiki.bacula.org/doku.php?id=sample_configs:
'Since Bacula 2.2.0 you can include the output of a command within a configuration file with the ”@|” syntax'

i'm on 2.0.3 . . .

thanks for the help,
guy

Martin Simmons wrote:
On Wed, 08 Oct 2008 10:44:17 -0400, Guy Matz said:
            
hey-hey,
i'm getting the following error when trying to use the "@|" notation to
include multiple files . . .

Starting bacula-dir: 03-Oct 18:40 bacula-dir: ERROR TERMINATION at lex.c:545
Config error: Cannot open included config file |: No such file or directory

            : line 4, col 3 of file /etc/bacula/bacula-dir.d/job.conf
@|"sh -c 'cat /etc/bacula/bacula-dir.d/job.d/*.conf'"


the content of my job.conf file is the "@|" line above, and the files
referred to in the @| line do exist.

any thoughts?
    
Try putting the bar inside the quotes:

@"|sh -c 'cat /etc/bacula/bacula-dir.d/job.d/*.conf'"

__Martin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users