Run Script (Linux)


Run Script job will run customized scripts on the enrolled device(s).

To create a job to remotely run the customized script and deploy it to the enrolled device(s) or group(s), follow these steps:

1.  Navigate to SureMDM Web Console > Jobs > New Job > Linux > Run Script.    

2.  In the Run Script prompt, enter a Job Name and Script.

                                   or

       To add a pre-defined script in the Script box

       a.  Select a setting displayed on the left panel.

    • Block USB
    • Copy File
    • Create Directory
    • Create File
    • Create User
    • Delete User
    • Modify user access and Permission
    • Move the file
    • Provide Admin Access to User
    • Reboot the device
    • Remove File/Directory
    • Rename a file
    • Revoke Admin Access From User
    • Run-script to enable/disable analytics of SureLock
    • Set only the date
    • Set only the time
    • Set the date and time
    • Shutdown the device
    • To export SureLock analytics data to File/SureMDM
    • Unblock USB

  b. Configure the script if required and click Validate > Insert .

or

     Click Browse to select a .txt file that has the script from the specified location.

     The run script will be inserted in the Script box.  

3.  Click Advanced Settings and enter the following details:

Settings

Description

File Name

Name of the File

Default Path

Server Path for the file to save

Permission

Permission Code for the file to access

                     

4.  Click Save.

     The newly created job will be listed in the Jobs List section.

5.  Go back to Home tab and select the Linux device(s) or group(s).

6.  Click Apply to launch the Apply Job/Profile To Device prompt.

7.  In the Apply Job/Profile To Device prompt, select the job and click OK.