“每天一命令之crontab”的版本间的差异
跳到导航
跳到搜索
小 (导入1个版本) |
|||
第1行: | 第1行: | ||
+ | = 秒级定时任务= | ||
+ | <pre> | ||
+ | * * * * * /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 5; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 10; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 15; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 20; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 25; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 30; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 35; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 40; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 45; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 50; /usr/bin/curl http://www.test.com | ||
+ | * * * * * sleep 55; /usr/bin/curl http://www.test.com | ||
+ | </pre> | ||
+ | |||
=see also= | =see also= |
2020年5月12日 (二) 03:10的版本
秒级定时任务
* * * * * /usr/bin/curl http://www.test.com * * * * * sleep 5; /usr/bin/curl http://www.test.com * * * * * sleep 10; /usr/bin/curl http://www.test.com * * * * * sleep 15; /usr/bin/curl http://www.test.com * * * * * sleep 20; /usr/bin/curl http://www.test.com * * * * * sleep 25; /usr/bin/curl http://www.test.com * * * * * sleep 30; /usr/bin/curl http://www.test.com * * * * * sleep 35; /usr/bin/curl http://www.test.com * * * * * sleep 40; /usr/bin/curl http://www.test.com * * * * * sleep 45; /usr/bin/curl http://www.test.com * * * * * sleep 50; /usr/bin/curl http://www.test.com * * * * * sleep 55; /usr/bin/curl http://www.test.com