ca.cbc.utilities
Class SystemCall

java.lang.Object
  |
  +--ca.cbc.utilities.SystemCall

public final class SystemCall
extends java.lang.Object

Class SystemCall: Utility function to perform a unix exec function similar to the Perl form of the command. the static exec takes the full command line of some program and returns a new String containing the result, or the error.

Version:
$Id: SystemCall.java,v 1.2 2001/12/07 18:58:28 garym Exp $
Author:
Unknown, Gary Lawrence Murphy

Constructor Summary
private SystemCall()
           
 
Method Summary
static java.lang.String exec(java.lang.String command)
          exec:
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

SystemCall

private SystemCall()
Method Detail

exec

public static java.lang.String exec(java.lang.String command)
                             throws java.lang.Exception
exec:
Parameters:
command - line String
Returns:
a String with the result
Throws:
java.lang.Exception - if any exec error occurs