Erm,
The output is great thanks but I am having a problem iterating through the output file.
For instances I was grabbing $names[12] as the line to work on, only to discover that the output varies according to the capabilities of the drive, so the line is not always $names[12].
The line from SMART that I need always starts with the value 194, so I need to be able to grab that line to work on. It could be $names[6] or $names[n].
Really appreciate the steer. Over 6 years since I coded php so tad slow at the moment, sorry.
regards,
jB