Here you can see an example
Save the script: Open a text editor and paste the script into a new file. Save the file with a .sh extension, for example, mining_script.sh. Make the script executable: Open a terminal and navigate to the directory where the script is saved. Then run the following command to make the script executable: (chmod +x mining_script.sh) Run the script: In the terminal, run the following command to start the script: (./mining_script.sh ) Set up a cron job (optional): If you want the script to run automatically at specified intervals, you can set up a cron job. To do this, run the following command in the terminal: (crontab -e ) This will open the crontab file in the text editor. Add a new line at the end of the file with the following format to run the script every day at a specified time:(minute hour day month day-of-week /path/to/mining_script.sh ) For example, to run the script every day at 12 PM, add the following line:(0 12 * * * /path/to/mining_script.sh ) Save and close the crontab