This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7a63e10c5a66572189dc89531377768e4e19aed4 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Aug 18 10:41:59 2022 +0200 CAMEL-18389: camel-jbang - camel ps til list running camel applications. --- docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc index da896f15d95..a3b974818d7 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc @@ -441,6 +441,9 @@ You can specify which Camel version to run as shown: jbang run -Dcamel.jbang.version=3.17.0 camel@apache/camel [command] ---- +NOTE: Older versions of Camel may not work as well with Camel JBang as the newest versions. +Starting from Camel 3.18 onwards is the versions that are recommended to be used onwards. + And you can also try bleeding edge development by using SNAPSHOT such as: [source,bash] @@ -515,6 +518,21 @@ For example. you can copy this to your clipboard and then run it afterwards: camel run clipboard.xml ---- +=== Controlling local Camel applications + +To list the currently running Camel JBang applications you use the `ps` command: + +[source,bash] +---- +camel ps +37928 camel run foo.yaml (age: 20h18m) +44805 camel run dude.java (age: 58s) +---- + +This lists the PID, the name and age of the application. + +NOTE: Additional commands are in the works. + === Scripting from terminal using pipes You can also execute a Camel JBang file as a script that can be used for terminal scripting with pipes and filters.