In a KScript, to what does "Directory" refer?

When developing a KScript, if the "Launch a program..." option is chosen, one of the fields is "Directory:".

Is that the directory where the "File:" is to be found? Or is it the directory to which the processor should change into before running the "File:"?


Directory: /tmp

File: hdiutil

Does the system first do a "cd /tmp" followed by a run of "hdiutil", searching for the file via the PATH environment variable, as in:

/root # cd /tmp

/tmp # hdiutil

Or, does the system simply try to run "/tmp/hdiutil", as in:

/root # /tmp/hdiutil



0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: Nico_K 1 year ago
Red Belt

The Directory refers to the location of the program you want to run, this is correct.
By default you will have a script or similar attached to the script and want to run this, so the directory will be $(KACE_DEPENDENCY_DIR) which is /var/quest/kace/kbots_cache/packages/kbots/XX for instance.

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:


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