From daf79631f3eff904ba89297148c4125ac7dfee39 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki Date: Wed, 2 Feb 2011 14:30:06 +0000 Subject: [PATCH] Add --stream flag. Output is sent to stdout (similar to the top -b option). --- virt-top/.depend | 4 +-- virt-top/virt-top.pod | 9 +++++ virt-top/virt_top.ml | 89 ++++++++++++++++++++++++++++++++++++++++------- virt-top/virt_top.mli | 2 +- virt-top/virt_top_main.ml | 8 ++--- 5 files changed, 92 insertions(+), 20 deletions(-) diff --git a/virt-top/.depend b/virt-top/.depend index 08bbd95..0f09d4f 100644 --- a/virt-top/.depend +++ b/virt-top/.depend @@ -2,8 +2,6 @@ virt_top_utils.cmi: virt_top.cmi: virt_top_gettext.cmo: virt_top_gettext.cmx: -virt_top_utils.cmo: virt_top_gettext.cmo virt_top_utils.cmi -virt_top_utils.cmx: virt_top_gettext.cmx virt_top_utils.cmi virt_top_main.cmo: virt_top_gettext.cmo virt_top.cmi virt_top_main.cmx: virt_top_gettext.cmx virt_top.cmx virt_top_csv.cmo: virt_top_gettext.cmo virt_top.cmi @@ -12,6 +10,8 @@ virt_top_calendar1.cmo: virt_top_gettext.cmo virt_top.cmi virt_top_calendar1.cmx: virt_top_gettext.cmx virt_top.cmx virt_top_xml.cmo: virt_top_gettext.cmo virt_top.cmi virt_top_xml.cmx: virt_top_gettext.cmx virt_top.cmx +virt_top_utils.cmo: virt_top_gettext.cmo virt_top_utils.cmi +virt_top_utils.cmx: virt_top_gettext.cmx virt_top_utils.cmi virt_top_calendar2.cmo: virt_top_gettext.cmo virt_top.cmi virt_top_calendar2.cmx: virt_top_gettext.cmx virt_top.cmx virt_top_version.cmo: diff --git a/virt-top/virt-top.pod b/virt-top/virt-top.pod index 4d7df4e..9e1e228 100755 --- a/virt-top/virt-top.pod +++ b/virt-top/virt-top.pod @@ -153,6 +153,11 @@ Do not read any init file. Script mode. There will be no user interface. This is most useful when used together with the I<--csv> and I<-n> options. +=item B<--stream> + +Stream mode. All output is sent to stdout. This can be used from +shell scripts etc. There is no user interface. + =item B<--end-time time> The program will exit at the I