You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Massimo Pichini (JIRA)" <ji...@apache.org> on 2016/02/10 08:45:18 UTC
[jira] [Created] (KARAF-4326) karaf client not executing logout
when processing command file
Massimo Pichini created KARAF-4326:
--------------------------------------
Summary: karaf client not executing logout when processing command file
Key: KARAF-4326
URL: https://issues.apache.org/jira/browse/KARAF-4326
Project: Karaf
Issue Type: Bug
Affects Versions: 3.0.5
Environment: Apache ServiceMix 6.0.0 running on RedHat ES 6.2
Reporter: Massimo Pichini
I'm using the karaf client to perform bundle install/uninstall in my Apache Servicemix instance (I'm using release 6.0.0 on RHES 6.2). This is part of the software install/upgrade process executed via a bash script.
I pass a command file to the client with last command being a {{shell:logout}}, in order to exit from the shell once all commands have been processed. The commands are actually processed, but there's no way for the logout command to be processed: the console remains opened in a strange state, since the input commands are not processed (that is even entering {{shell:logout}} nothing happen).
The only way to exit is by entering Ctrl-C. I run the Apache Karaf client with the command:
{{./client -u smx -f <path_to_cmd_file>}}
On other way, if a execute the same command file ({{shell:source <cmd_file>}}) from within the karaf console (started with {{./client -u smx}} without additional arguments) all commands are processed, including the last {{shell:logout}} command that causes the logoff of the karaf console.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)