spring shell运行命令而不附加应用程序进程

inkz8wg9  于 2021-07-26  发布在  Java
关注(0)|答案(0)|浏览(222)

我有一个简单的命令

@ShellComponent
class ShellComp {
    @ShellMethod("dosmth")
    fun dosmth(): String = "success"
}

我可以运行我的应用程序使用linux屏幕,启动命令,deattach和附加时,我想。
如何在没有附加的情况下运行命令,例如使用包含如下代码的bash脚本

screen -dms <my-app> "dosmth"

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题