Custom Bash Scripts are one or a series of commands that can be deployed to your fleet from Fleetsmith to perform multiple tasks.
There are two ways to run a Custom Bash Script via Fleetsmith:
- Custom Bash Script (Scheduled)
- Custom Bash Script (Run Once)
The Custom Bash Script (Scheduled) executes a Bash script on a regular schedule.
The Custom Bash Script (Run Once) runs a script a single time on each device. With the Custom Bash Script (Run Once) option, if/when the contents of the script are updated, another single run of the updated script will be triggered to each device. ✨
Note: Fleetsmith will insert
#!/bin/bash prior to any lines you write in the Fleetsmith Admin Console so you do not need to include it.