Note, when using the awful google groups to followup, please fix the
quoting that google groups breaks before you submit your followup.
Alternately, register an Eternal September account and utilize a real
news reader:
http://www.eternal-september.org/
No, not familiar with nmon, but googling for it reveals that it is open
source. So you do in fact have access to the source.
Does nmon eventually exit once whatever you've asked it to accumulate
has accumulated?
If so, you might make use of this feature of the skimpy documentation
to monitor for its exit, and only pickup the output file once it has
exited:
Use -p and nmon outputs the background process pid
What is it you are asking it to collect? You might just be able to
collect what you want by pulling the data directly out of the /proc
filesystem instead of going through nmon.
What happens if you use this option: "-c <number> of refreshes" to
set a specific number of refreshes? Does it automatically exit in that
case. If yes, then you might use -c # and -p to monitor it for
exiting, then collect the file.