I'm fairly new to things and I've been writing a simple Perl script to poll a server for iostat -k -x data every few seconds using capture from Capture::Tiny
The script works, however the data being shown is being cut off. This doesn't happen if I normally do iostat -k -x
This is just to display the data n times in the space of a minute.
Script code, iostat -k -x output, output when poll script is used are here: http://pastebin.com/K1AnqskU
Any help would be appreciated!