简体   繁体   English

如何使用 karaf 的 client.bat 编写 servicemix 系统包的更新脚本?

[英]How can I script an update to a servicemix system bundle using karaf's client.bat?

How can I script out a update to a servicemix system bundle using karaf's client.bat?我如何使用 karaf 的 client.bat 编写对 servicemix 系统包的更新脚本? When I try to run ./client.bat "update 111" -p <password> through powershell I get a java.lang.NullPointerException.当我尝试通过 powershell 运行./client.bat "update 111" -p <password>时,我得到一个 java.lang.NullPointerException。 I believe it is because updating this bundle requires the user to type yes on the server when it asks "You are about to access system bundle 111. Do you wish to continue (yes/no):" Any way I can get around this?我相信这是因为更新此捆绑包需要用户在服务器询问“您将要访问系统捆绑包 111。您是否希望继续(是/否):”时在服务器上键入是,我有什么办法可以解决这个问题吗?

Specify user and password first then specify command you want to run.首先指定用户和密码,然后指定要运行的命令。

Example:例子:

# Default user and password
./client.bat -u karaf -p karaf -- "update 111"

Don't recall Apache Karaf asking for confirmation when it comes to bundle:update .不记得 Apache Karaf 在谈到bundle:update时要求确认。 If service mix has such thing you might want to check bundle:update --help to see if there's option to skip it.如果服务组合有这样的东西,你可能想检查bundle:update --help看看是否有跳过它的选项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将.bat文件中的变量导入PowerShell脚本? - How can I source variables from a .bat file into a PowerShell script? 运行Powershell脚本时如何使.bat文件不退出? - How can I make a .bat file not exit when I run a powershell script? 如何使用bat文件从启动/自动启动文件夹运行Powershell脚本? - How can I run a powershell script from startup/autostart folder with bat file? 我如何从.bat-(或.ps1-)脚本中找出它是由任务计划程序启动的? - How can I find out, from within a .bat- (or .ps1-) script, if it was started by the task scheduler? 如何使用 .bat 脚本从非静态链接下载文件 - How to download a file from a non static link using .bat script 使用Popen在Python中执行Powershell脚本,如何获取Powershell脚本的输出并将其更新到网页? - Use Popen to execute a Powershell script in Python, how can I get the Powershell script's output and update it to web page? 如何获取 PowerShell 脚本的文件系统位置? - How can I get the file system location of a PowerShell script? 如何使用PowerShell查找Active Directory类的“ Schema-Id-Guid”和属性的“ System-Id-Guid” - How can I lookup an Active Directory Class's “Schema-Id-Guid” and an Attribute's “System-Id-Guid” using PowerShell 如何在单个 powershell 命令中下载并执行 .bat 文件? - How can I download and execute a .bat file in a single powershell command? 如何在运行之前更新当前脚本? - How can I update the current script before running it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM