Bacula-users

Re: [Bacula-users] Feature idea feeler - bconsole "include / grep"

2010-05-07 05:21:25
Subject: Re: [Bacula-users] Feature idea feeler - bconsole "include / grep"
From: Gavin McCullagh <gavin.mccullagh AT gcd DOT ie>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 7 May 2010 10:19:04 +0100
On Thu, 06 May 2010, Steve Polyack wrote:

> These are certainly good points.  My thought is just that instead of 
> breaking out of bconsole to perform these tasks can be cumbersome.  
> Personally, I feel that it's something that I'd use a lot, simply to 
> prevent me from constantly breaking in and out of the interactive 
> bconsole session.  However, perhaps a solution would be to have bconsole 
> parse the pipe character and feed output into the command that follows 
> which could be any arbitrary *nix command (as opposed to 
> writing/including our own version of grep).

For comparison, the Postgresql and MySQL command line interfaces include
something similar to this.

MySQL offers the "pager" command which can be set to "less" or "grep xxxx",
etc. as well as the tee command to also send output to a file.  Postgresql
offers a single:

          \o [FILE]      send all query results to file or |pipe

Neither allow anything as simple as

        SELECT ....... ; | grep blah

though.

Gavin



------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users