I tried to make iftop execute for 80000 seconds and output to a file:
sudo iftop -i wlan0 -s 80000 -t > "$file"
However all I can find in the file is
Listening on wlan0
without the actual output. When I remove the -s 80000, then it works fine.
Why is there no actual output in the file?