所以这就是我想做的事情 -
for test in `ls Tests`; do
for file in `ls FileFolder`; do
output=`python devcap $test $file`
echo $test $file $output >>result.txt
done
done
如果超过5秒并且移动到下一个$文件,如何超时$ output?
我可以将stderr重定向到result.txt吗?
答案 0 :(得分:0)
试试这个:
for test in `ls Tests`; do
for file in `ls FileFolder`; do
output=`python devcap $test $file`
sleep 5
echo $test $file $output >>result.txt
done
done