redirect.sh 247 B

12345678910111213
  1. #!/bin/bash
  2. # /etc/crontab
  3. # @reboot root bash /root/redirect/redirect.sh >/dev/null 2>&1 &
  4. CurrentDIR=`dirname "$0"`
  5. for item in `find "$CurrentDIR" -maxdepth 1 -type f -name "redirect_*.sh"`
  6. do
  7. bash "${item}" >/dev/null 2>&1 &
  8. done