/build/static/layout/Breadcrumb_cap_w.png

Mac Scripting File Location

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? - chucksteel 7 years ago
    • I've updated the question with a picture as requested - PilotJosh357 7 years ago
  • Have you tried using the Online Shell Script option instead of the KScript? - chucksteel 7 years ago
    • 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. - fleminsa 5 years ago
  • What do you have configured for targeted OS and "Select Specific Operating System" option? - JasonEgg 7 years ago

Answers (1)

Posted by: kentwest 6 years ago
Second Degree Brown Belt
4
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
Visible
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.
 
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