在通过.php
命令运行的screen
文件中,出现ls: write error: Broken pipe
错误,但脚本运行正常。我只是想解决该错误。我该如何解决?下面是我的代码段。
$execQuery = "mv -f `ls /home/MYSPORTS/MySPORTS/*.unl | head -500` /home/MYSPORTS/MySPORTS/OPERATION/ && awk -F'|' '{print $1 $2}' /home/MYSPORTS/MySPORTS/OPERATION/*.unl > /home/MYSPORTS/MySPORTS/OPERATION/scratch_card_unl.txt";
shell_exec($execQuery);