/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Online Shell Script not picking up KACE variables in OSX 10.x script

01/15/2014 4156 views

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   [ + ] Show comment

Comments

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

All 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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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