> Additional tools > Apple Mac device management > Mac management > Execute custom tasks with managed scripts

Execute custom tasks with managed scripts

LANDESK Management Suite uses 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:

REMEXEC0=/Library/Application\ Support/LANDesk/bin/ldscan

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 Mac OS X managed scripts in the Scheduled tasks window and drag Mac OS X devices into the Scheduled tasks window as script targets.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other