I'm trying to process multiple videos in a folder and produce results through redirecting their outputs to a text file. When I do this inside the bash script, it doesn't work and doesn't redirect and instead shows on screen. What should I change? How to fix it?
for f in *.mp4
do
echo "Processing $f file..."
# take action on each file. $f store current file name
python myscript.py $f &> ../log-$f.txt
done