KACE Product Support Question

What is the script variable for the scripts folder?

06/16/2016 935 views
In writing an online shell script, I'm creating a log file which I want to upload to the K1000 appliance using the "Upload file" feature. That feature says the default directory is "the script directory", which by poking around I have decided seems to be (on the Macintosh) /Library/Application Support/Dell/KACE/data/scripts/xxx

The K1000 variable $(KACE_DATA_DIR) will get me to the /Library/Application Support/Dell/KACE/data/ directory, and I can manually add "/scripts", but what I need is to know the xxx part of the equation, and I don't see any variable that gives me that. Does such a variable exist?


Answer Summary:
There doesn't seem to be a KACE environment variable for this directory; you'll have to hard-code it. rockhead44 pointed out that during script creation, the script is given a number, which you can find by going back out one level to the list of scripts, hovering over your script, and looking at the status line at the bottom of the browser window. Thanks, rockhead44!
0 Comments   [ + ] Show comments


Answer Chosen by the Author

That is the number that corresponds to your script. Click your script on the K1000 and check the number at the end of the URL to identify it.
Answered 06/16/2016 by: rockhead44
Red Belt

  • Yes, I could hardcode that number into my script as a "magic number", but that's not the right way to do it. There should be a KACE environment variable that tells me that number at run-time. If there's not, there's not, but there should be.

Don't be a Stranger!

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

Sign up! or login


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