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!


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
sudo launchctl unload "/Library/LaunchAgents/com.elsitech.screenconnect.client.plist" sudo launchctl load "/Library/LaunchAgents/com.elsitech.screenconnect.client.plist"
Posted by: cody.suhr 7 years ago
White Belt

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:

Posted by: mpace 7 years ago
Red Belt

A couple of different ways to accomplish this:

1.) Define the kscript as an Online Shell Script. Then write your script like so:

2.) Attach the command as a dependency. Then run the script from the dependencies directory using $(KACE_DEPENDENCY_DIR)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ