KACE Product Support Question
How do I run a terminal command through the K1000 "Launch a program" task?
I am trying to run the following Mac Terminal command through a K1000 script using the Launch a program task. It does not seem to be working. Is this possible, or is there a better way to do it. The command is:
launchctl stop com.elsitech.screenconnect.client
I am looking for the correct settings for Directory, File and Parameters if it is possible to do it this way, otherwise some direction on the correct way to do it would be helpful. Thank you!
sudo launchctl unload "/Library/LaunchAgents/com.elsitech.screenconnect.client.plist" sudo launchctl load "/Library/LaunchAgents/com.elsitech.screenconnect.client.plist"
Community Chosen Answer
It turns out the process I was trying to stop and start was at the user level, so to get it to run from an Online Shell Script I worked with support to come up with the following script: