为了让一些软件运行,我需要1.运行一个脚本来执行一个远程许可管理器,2.执行一个shell脚本来启动软件。为此,我可以使用rlm在目录中打开一个命令窗口,然后键入./rlm以运行Linux可执行文件。然后,我可以进入包含shell脚本的目录,在该位置打开一个终端并运行./myshell.sh。这将打开我的软件的GUI。
我想使用单个Python脚本运行这些步骤。我试过了:
#change the working directory...
os.chdir(r'/opt/mysoftwarelocation')
#confirm location change...
p
在这里,我使用javafx(图形用户界面交互)、.In linux和mac os构建了我的应用程序,使用的是.sh,它可以在fine.In窗口下运行,也可以在.bat上运行。但是当涉及到java包装器服务时,GUI窗口就不会出现。
我已经尝试过设置这两个属性。wrapper.ntservice.hide_console=true wrapper.ntservice.interactive=true
显示的消息窗口是"a program running on this computer is The to display a message“,我单击”.When the message“