我想播放音频文件,然后在音频文件播放完毕后等待30分钟并再次播放音频文件。我想多次这样做。
我知道我可以制作一个大型音频文件,但文件非常大,我需要通过电子邮件发送给其他人,制作音频文件更容易,并使用某种类型的脚本来执行此操作。< / p>
Example Loop:
play audio file to the end then wait 30mins,
play audio file to the end then wait 30mins,
play audio file to the end then wait 30mins,
etc..
PS:音频文件可以是任意长度。
我知道crontab
crontab -e
*/30 * * * * /path/to/your/command
但是,这并不等待音频文件完成播放或让我能够说出它应该运行多少次。
我正在使用ubuntu 14.04
答案 0 :(得分:1)
这很简单,或者我错过了什么。你需要的是:
angular.forEach($scope.dataInputs, function (value, key) {
var nombrePos = key.slice(-1); //key=inputs0 and nombrePos=0
...
});
我使用了较旧的语法,因此它可以在任何类似bourne的shell上运行(而不仅仅是bash)。