crontab.sh 305 B

123456789101112
  1. #!/bin/bash
  2. step=5 #间隔的秒数,不能大于60
  3. for (( i = 0; i < 60; i=(i+step) )); do
  4. $(php '/home/wwwroot/wxapp.dahengdian.com/think' Cang)
  5. $(php '/home/wwwroot/wxapp.dahengdian.com/think' Send)
  6. $(php '/home/wwwroot/wxapp.dahengdian.com/think' Subject)
  7. sleep $step
  8. done
  9. exit 0