You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jörg Weule <we...@7b5.de> on 2017/03/30 14:52:48 UTC
Returned objects from shell commands?
Hello,
what is the idea of the returned objects of shell commands?
Unfortunately, they are printed to the console if not assigned to a
shell variable.
Commands like shell:wc is not returning an java.lang.Long if asked to
return number of lines. It's tricky to compare the string of shell:tac
to anther number with shell syntax.
With kind regards
J�rg Weule
Re: Returned objects from shell commands?
Posted by Toni Menzel <to...@rebaze.com>.
There is an appnote from Peter for that:
http://enroute.osgi.org/appnotes/gogo-cmd.html
*Toni Menzel*
*www.rebaze.de <http://www.rebaze.de/> | www.rebaze.com
<http://www.rebaze.com/> | @rebazeio <https://twitter.com/rebazeio>*
On Thu, Mar 30, 2017 at 4:52 PM, Jörg Weule <we...@7b5.de> wrote:
> Hello,
>
> what is the idea of the returned objects of shell commands?
>
> Unfortunately, they are printed to the console if not assigned to a
> shell variable.
>
> Commands like shell:wc is not returning an java.lang.Long if asked to
> return number of lines. It's tricky to compare the string of shell:tac
> to anther number with shell syntax.
>
> With kind regards
>
> Jörg Weule
>