Re: [Bacula-users] [Bacula-devel] Idea/suggestion for dedicated disk-based sd
2010-05-31 09:47:48
Here's a quick patch to src/console/console.c
with implementation to "-e" command line switch to bconsole.
http://snap.co.ru/~mator/one-command-console.c.patch
On 25.05.2010 / 10:33:27 -0400, Morty Abzug wrote:
> On Tue, May 25, 2010 at 05:13:36PM +0400, Anatoly Pugachev wrote:
> > On 04.05.2010 / 13:33:12 -0400, Morty Abzug wrote:
>
> > > (12) bconsole should support an option for execute-one-command (i.e. -e)
> >
> > how it is different from:
> >
> > echo list jobs | bconsole
> >
> > but I've tried to implement "-e " command line switch, it takes about 30
> > lines of code actually...
>
> Sounds good. :) echo list jobs | bconsole requires more shell support
> (pipes, possibly quoting) from the caller. For example, calling
> bconsole from within bacula-dir.conf itself requires something like:
>
> RunAfterJob = "sh -c 'echo umount | bconsole'"
>
> bconsole -e simplifies that.
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|