/build/static/layout/Breadcrumb_cap_w.png
08/26/2016 1420 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

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

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.
Answered 12/07/2017 by: kentwest
Third Degree Green 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

Share