karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Ribro (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2872) Can't capture apache Karaf client output
Date Thu, 24 Apr 2014 10:21:16 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979548#comment-13979548
] 

Oleksandr Ribro commented on KARAF-2872:
----------------------------------------

Looks like that this issue is already fixed in Karaf 3.0.1

> Can't capture apache Karaf client output
> ----------------------------------------
>
>                 Key: KARAF-2872
>                 URL: https://issues.apache.org/jira/browse/KARAF-2872
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>         Environment: CentOS6.5
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
>            Reporter: Oleksandr Ribro
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.0.0, 3.0.2
>
>
> I start apache-karaf3.0.0 in server mode using $KARAF_HOME/bin/start in CentOS6.5. I
then want to run several commands using $KARAF_HOME/bin/client and also capture the output
of these commands so as to make sure the commands ran successfully. The output does get spit
out on my console but I am never able to redirect it into a file. Seems like karaf doesn't
write anything to the output stream or error stream. I tried the following:
> {code}
> [apache-karaf-3.0.0]$ ./bin/start clean
> [apache-karaf-3.0.0]$ ./bin/client "bundle:list"
> Logging in as karaf
> 282 [pool-2-thread-3] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier
- Server at /0.0.0.0:8101 presented unverified key:
> START LEVEL 100 , List Threshold: 50
>  ID | State  | Lvl | Version                 | Name
> ------------------------------------------------------------------------------------
>  91 | Active |  80 | 1.8.0                   | Commons Codec
>  92 | Active |  80 | 2.6                     | Commons Lang
>  93 | Active |  80 | 15.0.0                  | Guava: Google Core Libraries for Java
> [apache-karaf-3.0.0]$ ./bin/client "bundle:list" >& bundleList
> [apache-karaf-3.0.0]$ cat bundleList
> null
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message