Hi Lars,

you can do it with shell.init.script, but you have to check that the log:tail command is there before actually executing it.

The $.commands give you the list of commands available in the session.

So, shell.init.script can contain something like:

log:tail-boot = {
  c = ($.commands | grep -i log:tail);
  while ( $c isEmpty ) {
    sleep 10
  }
  log:tail
}
log:tail-boot

Regards
JB

On 02/02/2016 03:11 PM, Lars Kiesow wrote:
Hi,
sine this is still annoying me:
Does anyone know if it is possible?
Regards,
Lars

On Wed, 4 Nov 2015 19:50:33 +0100
Lars Kiesow <[email protected]> wrote:

Hi everyone,
I was wondering if it is possible to automatically start `log:tail`
whenever Karaf is launched. It would be nice to have that on out
development distribution.

I have already tired adding `log:tail` to `etc/shell.init.script` but
when I launch Karaf, I will then get the following error:

   Error in initialization script: Command not found: log:tail

I guess the script is executed before the logging stuff is loaded.
Does anyone know if there is a way to do that?

Best regards,
Lars Kiesow


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to