The following line produces an error:

cp $(KACE_DEPENDENCY_DIR)/nckgahadagoaajjgafhacjanaoiihapd.json

/Library/Application Support/Dell/KACE/data/scripts/275/script.sh: line 13: KACE_DEPENDENCY_DIR: command not found

What I need is to get the shellscript to locate the json file being uploaded as a dependency and move that file to another location on the system.   


Answer Summary:
1 Comment   [ - ] Hide Comment


  • Have you tried to open script.sh in the directory listed above to see what is going on?
Please log in to comment

Answer this question or Comment on this question for clarity



The issue was that the Kace_dependency_dir was adding it's own "/" at the end.  So the script was senidng blah//sldkjwkf instead of blah/kjksdfj



Answered 01/16/2014 by: ST-Matt
White Belt

  • Yup. Lots of times that happens within kace. Have to remember that kace engineers are smart
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja