Redirect hdparm output to grep?

Alan Dayley adayley at gmail.com
Wed May 14 14:37:36 UTC 2008


William Thompson wrote:
> 
> Those look like kernel messages which do not come from hdparm.  Thus you
> cannot grep for the messages.  Try
> 
> dmesg | grep "sda: sda1"
> 
> instead.

This gem of knowledge and solution hold a lot of promise.  On the 
command line, this works well.  I'll try incorporating it in my script.

Alan




More information about the busybox mailing list