Hi,

07.11.2007 13:48,, Eric Böse-Wolf wrote::
> Hello Arno,
> Arno Lehmann <[EMAIL PROTECTED]> writes:
> 
>>> Reading the man page of grep I noticed that it exits with exit code 1 if
>>> it does not find the pattern searched for, so I should have had the same
>>> error message with my autochanger, shouldn't I?


I'd start with trying the actual tapealert command you run from Bacula
executed from the shell. Run that as the user bacula-sd is run under.

>>
>> There might be permission problems, for example, which don't get 
>> reported through the pipe.
> 
> According to the man page of grep, it is normal that it exits with code
> one if it doesn't find the pattern searched for. 
> 
> My bacula-sd runs as root, which might not be a good idea but it rules
> out the permission problem :)

There will be some reason why your tapealert command output isn't 
matched by grep. You'll ony see what happens behind the scenes if you 
try the tapealert command Bacula runs and look at the output, not 
piped through grep.

Arno

> mfg
> 
> Eric
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to