[
https://issues.apache.org/jira/browse/KARAF-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420604#comment-13420604
]
Ioannis Canellos commented on KARAF-1382:
-----------------------------------------
Well, you usually need to use pipes when you want to pass the output of a
command to an other command, so I don't think that in the case you describe
pipes are of any use.
Now regarding your script. Even if you just execute commands sequentially there
is a good chance that the cellar commands will not be available right after the
feature installation. Will require the registration of services etc. So you
will have to either wait for a while or wait on service.
> Error during executing few commands with pipes
> ----------------------------------------------
>
> Key: KARAF-1382
> URL: https://issues.apache.org/jira/browse/KARAF-1382
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 2.2.6
> Environment: W7 x64
> Reporter: Pavel Vasilchenko
>
> I trying create karaf script for starting Cellar like this:
> tesb:start-cluster = { features:install cellar | cluster:group-create $args |
> cluster:group-set $args} ;
> But when I execute this command I get exception at command
> cluster:group-create because, if I right understand, Karaf invoke pipes as
> parallel commands.
> Line 187
> http://svn.apache.org/viewvc/karaf/tags/karaf-2.2.6/shell/console/src/main/java/org/apache/felix/gogo/runtime/Closure.java?view=markup
> And in this case Karaf tries to run command cluster:group-create before
> cellar is successfully installed.
> How can I run cluster:group-create in Karaf after Cellar feature will be
> successfully installed?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira