From f11c79da7ececc0cc5d670959acb936b2241b284 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 13 Sep 2005 03:42:17 +0000 Subject: [PATCH] print current user --- bindings/java/src/net/hyperic/sigar/cmd/Version.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Version.java b/bindings/java/src/net/hyperic/sigar/cmd/Version.java index e9aec287..67485499 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Version.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Version.java @@ -53,6 +53,8 @@ public class Version extends SigarCommandBase { if (!fqdn.equals(host)) { os.println("Hostname............" + host); } + os.println("Current user........" + + System.getProperty("user.name")); os.println(""); OperatingSystem sys = OperatingSystem.getInstance();