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 8 years ago
-
I've updated the question with a picture as requested - PilotJosh357 8 years ago
-
Have you tried using the Online Shell Script option instead of the KScript? - chucksteel 8 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 8 years ago
Answers (1)
Please log in to answer
Posted by:
kentwest
6 years ago
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.
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.