Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想关闭应用程序,从后台杀死它(它的实例)并重新启动它。那么有没有办法直接或间接地做到这一点?
从命令行启动仪器,并编写一个系统级脚本以使用两个不同的脚本运行它两次。第一次运行完成后,您的应用程序将在您开始第二次运行时停止并重新启动。您的系统级脚本应如下所示:
#!/bin/bash instruments -t Template.tracetemplate -e UIASCRIPT script1.js instruments -t Template.tracetemplate -e UIASCRIPT script2.js