crontab.sh 174 B

12345678910
  1. #!/bin/bash
  2. step=5 #间隔的秒数,不能大于60
  3. for (( i = 0; i < 60; i=(i+step) )); do
  4. $(curl 'http://47.104.128.143/cron/pk/index')
  5. sleep $step
  6. done
  7. exit 0