[
https://issues.apache.org/jira/browse/KARAF-2691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874690#comment-13874690
]
Christian Schneider commented on KARAF-2691:
--------------------------------------------
I checked how to implement this. I think a command is not necessary. I will
just add a shell variable when the shell is opened. As the pid can not change
that should do the trick.
You can then get the pid on the shell with $pid
> Karaf shell info command to display the pid
> -------------------------------------------
>
> Key: KARAF-2691
> URL: https://issues.apache.org/jira/browse/KARAF-2691
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core, karaf-shell
> Affects Versions: 2.3.3
> Reporter: Claus Ibsen
> Assignee: Christian Schneider
> Priority: Minor
>
> The karaf info is a useful command.
> Though it would be nice if it could display the pid (process id).
> Not sure how easy that is to grab.
> And maybe also a pid command to just return the pid, which can be used in
> scripts etc.
> [11:47:40] <davsclaus> would it be possible to show the pid in the
> karaf info command
> [11:49:17] <cschneide> Sure
> [11:49:52] <cschneide> davsclaus: If you open an issue I can
> implement it
> [11:50:36] <cschneide> davsclaus: If you want to use the pid in a
> script it might also make sense to return only the pid
> [11:51:29] <davsclaus> yeah a pid command
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)