Ivanti® Endpoint Manageruses scripts to execute custom tasks on devices. You can create scripts from the Manage scripts window (Tools > Distribution > Manage scripts). Macintosh scripts use shell commands to execute files. Shell commands run as root. The scripts are saved as text files, and you can edit them manually once they're created. The following is an example of a command:
The user can use the shell command "open" to launch files and applications, or "installer" to install .pkg files. It's also possible for the download file to be a shell script written in Perl, Ruby, Python, and so on.
When files are downloaded, they are saved to /Library/Application Support/LANDesk/sdcache/, which you need to be aware of in order to execute some of your shell commands.
You can schedule macOS X managed scripts in the Scheduled tasks window and drag macOS X devices into the Scheduled tasks window as script targets.
Here is a small sample macOS script:
For information on script syntax, see Processing software distribution custom scripts.