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:
Cancel
1 Comment   [ + ] Show Comment

Comments

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

Answers

1

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
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share