yardkasce.blogg.se

How to run script on mac terminal
How to run script on mac terminal









how to run script on mac terminal

Choose No (default) to run the script as the root user. Run script as signed-in user: Select Yes to run the script with the user's credentials on the device.The script file must be less than 200 KB in size. Upload script: Browse to the shell script.In Script settings, enter the following properties, and select Next: This setting is optional, but recommended. Description: Enter a description for the shell script.Name: Enter a name for the shell script.In Basics, enter the following properties, and select Next: Select Devices > macOS > Shell scripts > Add. Sign in to the Microsoft Endpoint Manager Admin Center. Shell scripts will attempt to run more frequently than the chosen script frequency for certain conditions, such as if the disk is full, if the storage location is tampered with, if the local cache is deleted, or if the Mac device restarts.Root user privileges are required if the script requires making changes that a standard user account cannot.An end user is required to sign in to the device to execute scripts running as a signed-in user.Shell scripts that are run as the signed-in user will run for all currently signed-in user accounts on the device at the time of the run.Shell scripts run in parallel on devices as separate processes.For more information, see Microsoft Intune management agent for macOS. Shell scripts require that the Microsoft Intune management agent is successfully installed on the macOS device.Important considerations before using shell scripts Command-line interpreters for the applicable shells are installed.Shell scripts begin with #! and must be in a valid location such as #!/bin/sh or #!/usr/bin/env zsh.Devices are running macOS 10.13 or later.PrerequisitesĮnsure that the following prerequisites are met when composing shell scripts and assigning them to macOS devices.

how to run script on mac terminal

To view a sample script, see Rosetta 2 Installation Script.

#How to run script on mac terminal install#

To install Rosetta 2 on Apple Silicon Macs automatically, you can deploy a shell script in Endpoint Manager. Rosetta 2 is required to run 圆4 (Intel) version of apps on Apple Silicon Macs.











How to run script on mac terminal