2016-04-29 29 views
1

時間が3または5分かかるタスクを実行する必要があります crontabで複数のタスクを同時に実行する方法はありますか?複数のタスクを同時にcrontabで実行する

のcrontab -e

0 13 * * * /etc/rip_first_radio.sh 
0 13 * * * /etc/rip_second_radio.sh 
0 13 * * * /etc/rip_third_radio.sh 
0 13 * * * /etc/rip_fourth_radio.sh 

答えて

1

あなたのcrontabの設定は正しいです。しかし、add allを1つのスクリプトに追加して実行することもできます。

vi main.sh 
./etc/rip_first_radio.sh & 
./etc/rip_second_radio.sh & 
./etc/rip_third_radio.sh & 
./etc/rip_fourth_radio.sh & 

とcronにmain.shを追加します。

0 13 * * * ./main.sh 
関連する問題