linux関連/自動録音/crontab
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(linux関連);
15 * * * * /usr/sbin/ntpdate ntp.nbu.ac.jp
0 21 * * 7 /root/rec.sh 30 viva 24000
0 10 * * 4 /root/rec.sh 15 chorus_A_school 24000
15 10 * * 4 /root/rec.sh 15 chorus_B_school 24000
30 10 * * 4 /root/rec.sh 15 chorus_C_school 24000
45 10 * * 4 /root/rec.sh 15 chorus_D_school 24000
0 12 * * 1-5 /root.sh 15 news 12000
0 8 * * 7 /root.sh 15 ohanasi 24000
0 18 * * 3 /root.sh 50 music 24000
0 0 * * 1-5 /root.sh 50 music 24000
15 5 * * * /usr/sbin/ntpdate ntp.nbu.ac.jp
00 7 * * 1-5 /root/rec.sh 8 wanda # wonda mornings...
10 7 * * 1-5 /root/rec.sh 2 teacher # gib
33 8 * * 1-5 /root/rec.sh 10 meigen # meigen2
55 9 * * 1-5 /root/rec.sh 4 meigen # meigen
00 15 * * 2 /root/rec.sh 30 kaname # kaname
30 21 * * 4 /root/rec.sh 25 oretachi # oretach
00 23 * * 5 /root/rec.sh 32 whatup # kimutaku
00 17 * * 6 /root/rec.sh 55 avanti # avanti
00 22 * * 5 /root/rec.sh 15 school # school
00 14 * * 6 /root/rec.sh 55 mac # mac
00 22 * * 6 /root/rec.sh 55 dct # dct
00 23 * * 6 /root/rec.sh 55 canon # canon
#30 9 * * 7 /root/rec.sh 30 reo # reo
00 17 * * 7 /root/rec.sh 56 abereiji # abereiji
15 20 24 7 * /root/rec.sh 15 human # human
00 16 * * 7 /root/rec.sh 55 fukuyama #fukuyama
#8 16 * * * /root/rec.sh 10 fi
#55 15 * * 1-5 /root/rec.sh 5 jfn_news # jfn nuws
#55 20 * * 1-5 /root/rec.sh 4 hot_town # hot town info...
#00 20 * * 5 /root/rec.sh 56 tenki #tenki
#55 13 * * 7 /root/rec.sh 5 wine # wine
#00 23 * * 1-5 /root/rec.sh 56 jet #jet
#54 19 * * 6 /root/rec.sh 6 takumi #takumi
#55 9 * * 7 /root/rec.sh 5 health # fitness
#!/bin/bash
rectime=`date +%Y%m%d_%H%M_$1min`
rec=$rectime.wav
rec_mp3=$rectime.mp3
rec_duration=$[$1*60]
form=U8
chan=1
log_a=`date +%m%d`
mail_add=
arecord -t wav -d $rec_duration -B 1000000 -f $form -c ...
lame -V3 --id3v1-only --tt "$2" $rec $rec_mp3
mail_tex=`ls -lh $rec_mp3`
yes y | rm $rec # $rectime.short
mv $rectime.* /var/www/sound/$2
mail_tex2=`df -h`
echo $mail_tex $mail_tex2 | mail -s "rectime_record_done...
終了行:
#navi(linux関連);
15 * * * * /usr/sbin/ntpdate ntp.nbu.ac.jp
0 21 * * 7 /root/rec.sh 30 viva 24000
0 10 * * 4 /root/rec.sh 15 chorus_A_school 24000
15 10 * * 4 /root/rec.sh 15 chorus_B_school 24000
30 10 * * 4 /root/rec.sh 15 chorus_C_school 24000
45 10 * * 4 /root/rec.sh 15 chorus_D_school 24000
0 12 * * 1-5 /root.sh 15 news 12000
0 8 * * 7 /root.sh 15 ohanasi 24000
0 18 * * 3 /root.sh 50 music 24000
0 0 * * 1-5 /root.sh 50 music 24000
15 5 * * * /usr/sbin/ntpdate ntp.nbu.ac.jp
00 7 * * 1-5 /root/rec.sh 8 wanda # wonda mornings...
10 7 * * 1-5 /root/rec.sh 2 teacher # gib
33 8 * * 1-5 /root/rec.sh 10 meigen # meigen2
55 9 * * 1-5 /root/rec.sh 4 meigen # meigen
00 15 * * 2 /root/rec.sh 30 kaname # kaname
30 21 * * 4 /root/rec.sh 25 oretachi # oretach
00 23 * * 5 /root/rec.sh 32 whatup # kimutaku
00 17 * * 6 /root/rec.sh 55 avanti # avanti
00 22 * * 5 /root/rec.sh 15 school # school
00 14 * * 6 /root/rec.sh 55 mac # mac
00 22 * * 6 /root/rec.sh 55 dct # dct
00 23 * * 6 /root/rec.sh 55 canon # canon
#30 9 * * 7 /root/rec.sh 30 reo # reo
00 17 * * 7 /root/rec.sh 56 abereiji # abereiji
15 20 24 7 * /root/rec.sh 15 human # human
00 16 * * 7 /root/rec.sh 55 fukuyama #fukuyama
#8 16 * * * /root/rec.sh 10 fi
#55 15 * * 1-5 /root/rec.sh 5 jfn_news # jfn nuws
#55 20 * * 1-5 /root/rec.sh 4 hot_town # hot town info...
#00 20 * * 5 /root/rec.sh 56 tenki #tenki
#55 13 * * 7 /root/rec.sh 5 wine # wine
#00 23 * * 1-5 /root/rec.sh 56 jet #jet
#54 19 * * 6 /root/rec.sh 6 takumi #takumi
#55 9 * * 7 /root/rec.sh 5 health # fitness
#!/bin/bash
rectime=`date +%Y%m%d_%H%M_$1min`
rec=$rectime.wav
rec_mp3=$rectime.mp3
rec_duration=$[$1*60]
form=U8
chan=1
log_a=`date +%m%d`
mail_add=
arecord -t wav -d $rec_duration -B 1000000 -f $form -c ...
lame -V3 --id3v1-only --tt "$2" $rec $rec_mp3
mail_tex=`ls -lh $rec_mp3`
yes y | rm $rec # $rectime.short
mv $rectime.* /var/www/sound/$2
mail_tex2=`df -h`
echo $mail_tex $mail_tex2 | mail -s "rectime_record_done...
ページ名: