but wait, what;s with the --hr 100? Are you trying to eliminate all but the first header? if so there's a switch for that too! --hr -1 suppresses all headers (btw - being lazy also invented hr to avoid typing headerrepeat
), --hr 0 prints a single header and anything >0 repeats the header. generally when I find the need to do something different, I just invent a new switch. wait til you see the next version
It might be more interesting to tell me what you're trying to do and there might even be some more switches to help you out. for example if you're trying to generate output to load into mysql, maybe -P format would be more suitable.
also, how long do you want this command to run for and are the sampling intervals what you want? since this is actually interactive mode, you're sampling disk data every second and process data every 60. you can certainly change those but I often find it more useful to just run as a daemon and letting it run all the time. then, if you just want process/disk data, play back what was recorded and just display the subset you want. you may think you only want process/disk data now, but what if there's a problem and you wish you also had network, memory, etc at least recorded if not loaded into mysql?
-mark