我嘗試遠程打開一個應用程序使用下面的命令,但我得到一個錯誤打開/激活遠程計算機上的封閉應用通過PSSH的Mac os10.12.6
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)
幫我解決這個。在遠程機器上是否還有其他功能需要啓用?
您是否試過以下任何建議? – CJK