我试图使用以下命令远程打开应用程序,但出现错误
pssh -h node.txt -O StrictHostKeyChecking=no -l mapsadmin -i "open /Applications/FusionX.app"
下面是错误:
Stderr: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/FusionX.app
mapsadmin是具有 root 权限的用户,仍然无法获得运气。请帮我解决这个问题。
我也尝试过使用 AppleScript,但没有运气
pssh -h node.txt -O StrictHostKeyChecking=no -l mapsadmin -i "osascript -e 'tell application \"FusionX\" to activate'"
[1] 16:07:31 [FAILURE] <IP address> Exited with error code 1
Stderr: 30:38: execution error: An error of type -10810 has occurred. (-10810)
帮我解决这个问题。远程机器上是否还有其他功能可以让这种情况发生?