/build/static/layout/Breadcrumb_cap_w.png

What is the script variable for the scripts folder?

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?

Thanks!


0 Comments   [ + ] Show comments

Answers (1)

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!
Posted by: rockhead44 7 years ago
Red Belt
1

Top Answer

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.

Comments:
  • 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. - kentwest 7 years ago

Don't be a Stranger!

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

Sign up! or login

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