Please check this wiki explaining how to Run MAC OS Script Procedure
https://wiki.itarian.com/frontend/web/topic/how-to-configure-and-run-procedures-on-managed-devices#create_mac_script_procedure
Run as System User or Logged in User
Note: Change text like as below in the script
file_content=r'''
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
'''
Comments