Yes, the PATROL for Scripting KM runs a script that requires data from other files. To run a script file with other files (for example, data) that are bundled with the script, add all the files along with the script file to a .zip or .tar file on the PATROL Agent file system. Enter the absolute path of the .zip or .tar file in the Script field while configuring a policy. The .zip or .tar file name must have the same name as the base script for the KM to upload the content of the file to the target host. For example, if the policy is defined with /tmp/myScriptDir/myScript.sh value, the zip file name must be myScript.zip, on the PATROL Agent file system.
Alternatively, to run a script file with other files, add all the files to a folder and add the following field at the first line of the script file:
requires <absolute path of the folder where all required files are located>
Along with the script file, the KM would copy the files mentioned in the folder and would run them with the script.