Re: Runscript Unknown term code Re: Bacula 15.0.2 update

Eric Bollengier via Bacula-devel <[email protected]> Wed, 15 May 2024 08:48:16 +0200
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
Hello Phil,

On 5/14/24 19:33, Phil Stracchino wrote:
> On 5/14/24 09:58, Eric Bollengier via Bacula-devel wrote:
>>
>> Yes, it can be added to Bacula, but the patch must define the special code
>> in the mysql.c file and provide a default alternative for other engines
>> (using the actual code).
>>
>> Best Regards,
>> Eric
> 
> 
> OK, I'm looking at mysql.c, but it's not immediately obvious to me how to 
> accomplish that.
> 
> 
> Also, does anyone have any insight on the 'Runscript() Unknown term code' from 
> the .bvfs-update call?
> 

A Console runscript doesn't have return code, thus, it's Unknown term code.
You can use a command runscript and do "sh -c 'echo .bvfs_update | bconsole'"
instead if you are really annoyed. A better solution would be to implement
some kind of return code for each console command, but it's a pretty big task.

Best Regards,
Eric