org.objectweb.telosys.util
Class SysUtil

java.lang.Object
  extended byorg.objectweb.telosys.util.SysUtil

public class SysUtil
extends java.lang.Object


Constructor Summary
SysUtil()
           
 
Method Summary
static java.lang.String[] exec(java.lang.String[] cmdAndArgs)
          Executes the given command with its arguments
static java.lang.String getOSName()
          Returns the Operating System name
static java.lang.String getOSVersion()
          Returns the Operating System version
static java.lang.String getUserName()
          Returns the Operating System user name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysUtil

public SysUtil()
Method Detail

getOSName

public static java.lang.String getOSName()
Returns the Operating System name

Returns:

getOSVersion

public static java.lang.String getOSVersion()
Returns the Operating System version

Returns:

getUserName

public static java.lang.String getUserName()
Returns the Operating System user name

Returns:

exec

public static java.lang.String[] exec(java.lang.String[] cmdAndArgs)
Executes the given command with its arguments

Parameters:
cmdAndArgs - the arguments for the 'exec' method of the 'Process' instance
Returns:
the execution output ( 0 to N lines )