/build/static/layout/Breadcrumb_cap_w.png

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

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




0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: Nico_K 5 years ago
Red Belt
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.

 
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