So, let me explain:

delay.console will start the shell "regular", without injecting any command
Once console is started, you can use the client.

However, it's up to you to check the status of the command (by scripting).

I guess the following Jira I created would help you:

https://issues.apache.org/jira/browse/KARAF-6111
https://issues.apache.org/jira/browse/KARAF-6110

Basically, assuming console.delay works for you, I guess you would just
need a way to "inject" commands/script when the shell is started right ?

Regards
JB

On 20/03/2019 09:59, [email protected] wrote:
>> FYI, I fixed an issue in client, now you can inject directly a script.
> 
> Do you mean there's a way of using the "karaf" command and running a script? 
> With the karaf.delay.console=true setting you can't pipe a script in to the 
> karaf command, as it misinterprets the end of line as "Press Enter to open 
> the shell now...".
> Using "start && client -f commands.txt && stop" a) seems unreliable and b) 
> would seem to need a sleep anyway as otherwise the client tries to connect 
> while karaf is still starting.
> 

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

Reply via email to