I was trying to open an application remotely using below command, but I get an error
pssh -h node.txt -O StrictHostKeyChecking=no -l mapsadmin -i "open /Applications/FusionX.app"
Below is error:
Stderr: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/FusionX.app
mapsadmin is the user with root privileges, still couldn't get luck. Please help me in solving this.
I have tried with AppleScript also, but no luck
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)
Help me in solving this. Is there anything else to be enabled on remote machine to let this happen?