Scripting Question

Mac Scripting File Location

08/26/2016 1682 views

So, I'm attempting to run a .sh script form the KACE dependency directory and am continually reeving an error. 

The error: 
/bin/sh: sh "/Library/Application Support/Dell/KACE/data/kbots_cache/packages/kbots/1714/macAdmin.sh": No such file or directory
ProcessOps_LaunchProgram: Launch failed: 0 exitCode=127
The command I'm running is sh "$(KACE_DEPENDENCY_DIR)/macAdmin.sh".
3 Comments   [ + ] Show comments


  • Can you post a picture of the script configuration?
    • I've updated the question with a picture as requested
  • Have you tried using the Online Shell Script option instead of the KScript?
    • Until 9.1 is released you cannot deploy anything with a label. That's what support told me. They said try via kscript until the bug is repaired.
  • What do you have configured for targeted OS and "Select Specific Operating System" option?

All Answers

I believe in the Verify area, the "File" field you just need "chmod", and the rest of the line goes into the "Parameters" field.

Directory: ______
File: __chmod___
Wait for Completetion
Parameters: __+x "(KACE_DEPENDENCY_DIRECTORY)/macAdmin.sh"

The way you have it, I don't believe the Verify area is actually changing the permissions on the file (but it is running "chmod", so it "Succeeds"), therefore the running of the file in the "On Success" area isn't able to run.
Answered 12/07/2017 by: kentwest
Brown Belt

Don't be a Stranger!

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

Sign up! or login

View more:


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