1.后台执行 nohup /bin/bash import.sh 1>&2 2>log & 2.生成脚本 for i in `ls` ; do echo "mysql -u\$1 -p\$2 \$3<$i">>import.sh ;done 相关文章: