So, this is weird... I'm running this command:
iotop -o -P -k -bt -d 5
I'd like to save the output relelvant to rsyslogd to a file, so I do this:
iotop -o -P -k -bt -d 5 | grep rsyslogd >> /var/log/rsyslogd
Nothing is written to the file! I can write the full output to the file:
iotop -o -P -k -bt -d 5 >> /var/log/rsyslogd
But I can't pipe the output through grep and then write to a file! How odd. I've also tried awk in place of grep. Any idea what might be causing this? Thanks.