当我执行以下bash脚本时。我在输出中得到了奇怪的名称文件
Traceback (most recent call last):
File "/apps/django/myapp/tasks.py", line 336, in _safe_mysqldump
"mysqldump {} {}".format(mysql_args, cmd), shell=True
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError:
Command 'mysqldump -ufoo -pMYSECRETPASSWORD myappdb t1 t2 t3...' returned non-zero exit status 6.
During handling of the above exception, another exception occurred:
etc.
以下输出:
#!/bin/bash
for file in `cat *and*.txt`
do
./AT.pl $1 $2 $file | sed 's/ //g' > $file
done
当我用echo命令替换“ ./AT.pl $ 1 $ 2 $ file | sed's / // g'> $ file”时。结果是正常的。
我不知道这是哪里来的?请帮助我
谢谢你, 谭阮