If you need to schedule a command to be run at a certain frequency, you may be able to use crontab to achieve it.
Note: This guide does not cover setting up services, permissions, etc. You will need to have command(s) that are ready to be run automatically.
Commands
- Make a new directory to store your commands and
cd
into it:mkdir ~/scheduledCommand && cd ~/scheduledCommand
- Create and edit a new file where you'll be storing the commands:
nano loop.sh
- Enter whatever you need. If you have a systemd service called boing installed, you could have the following to restart it.
#!/bin/bash systemctl restart myservice
Create Cron Job
Operators
Cron jobs support 4 different operators: