To add this script to Crontab: crontab -eīy adding the following command to Crontab, the scrip will be executed every 30 minutes: 0,30 * * * * bash /home/pi/big-ben/clock. Remember to exit & save (Ctrl + x, y Enter) Mplayer "/home/pi/big-ben/F3CWOPJINC0CAI4.mp3" Mplayer "/home/pi/big-ben/FOPGM68INC0CAI9.mp3" #!/bin/bash # Triggered through Crontab every 30 minutes the default working directory, which should be /home/pi) copy the following lines one-by-one to create the directory and copy the mp3 files: mkdir /home/pi/big-ben cd /home/pi/big-ben wget wget To get started, you can download mine below - originally from the UK Parliament website.įrom a freshly booted Raspbian terminal (i.e. Mobile Ringtones can be downloaded by Android, Apple iPhone, Samsung, Huawei, Oppo, Vivo, LG, Xiaomi, Lenovo, ZTE and other mobile phones. For explanation, I will use /home/pi/big-ben. Create a big-ben directory in a known location to hold the Bash script and the mp3s. I used a simple Bash script, the mp3s and Crontab for this project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |