Linux 在crontab中同时运行多个任务,无延迟

Linux 在crontab中同时运行多个任务,无延迟,linux,task,crontab,schedule,Linux,Task,Crontab,Schedule,我必须运行需要3或5分钟时间的任务 如何在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 您的crontab配置是正确的。但您可以将所有内容添加到一个脚本中,并同时运行 vi main.sh ./etc/ri

我必须运行需要3或5分钟时间的任务 如何在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

您的crontab配置是正确的。但您可以将所有内容添加到一个脚本中,并同时运行

vi main.sh
./etc/rip_first_radio.sh &
./etc/rip_second_radio.sh &
./etc/rip_third_radio.sh &
./etc/rip_fourth_radio.sh &
并将main.sh添加到cron

0 13 * * * ./main.sh