Skip to content

Instantly share code, notes, and snippets.

@dreamflyforever
Created January 5, 2017 04:19
Show Gist options
  • Save dreamflyforever/7052c031167915fa863abbc61b23d361 to your computer and use it in GitHub Desktop.
Save dreamflyforever/7052c031167915fa863abbc61b23d361 to your computer and use it in GitHub Desktop.
#!/bin/bash
begin=$(date +%s)
for ((i=0;i<1;i++));do
{
mosquitto_pub -h 120.24.75.220 -p 61613 -u admin -P password -t test -m test
}&
done
wait
end=$(date +%s)
spend=$(expr $end - $begin)
echo "spend time$spend秒"
Folder_TEST="/home/jim/Downloads/dao_hang"
for file_test in ${Folder_TEST}/*; do
echo $file_test
/opt/aispeech/linux_asr/aispeech-speex-ogg-c-sample-20151116/fos_pcm $file_test
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment