/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


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

03/08/2019 380 views

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:"?

Example:

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


Thanks!


/Kent



Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

0

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.

Answered 03/08/2019 by: Nico_K
Red Belt

 
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