Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.subsystems.shells.core.model
Class SimpleCommandOperation

java.lang.Object
  extended by 
org.eclipse.rse.subsystems.shells.core.model.SimpleCommandOperation

public class SimpleCommandOperation
extends Object


Field Summary
protected   IRemoteCommandShell _cmdShell
           
protected   List _envVars
           
protected  int _outputLineIndex
           
protected  boolean _runAsShell
           
protected   IRemoteCmdSubSystem _subsystem
           
protected   IRemoteFile _workingDirectory
           
 
Constructor Summary
SimpleCommandOperation ( IRemoteCmdSubSystem subsystem, IRemoteFile workingDirectory, boolean runAsShell)
           
 
Method Summary
 void cancelCommand ()
           
 void exitShell ()
           
  IRemoteCommandShell getCommandShell ()
           
  String[] getEnvironmentVariables ()
           
protected  boolean hasMoreOutput ()
           
 boolean isActive ()
           
 void putInput ( String input)
           
  String readLine (boolean waitForOutput)
           
 void removeShell ()
           
 void runCommand ( String command, boolean exitShell)
          Run a command
 void runCommandInShell ( String exports, String command, boolean exitShell)
          Launch a shell with the specified exports and command
 void setEnvironmentVariable ( String name, String value)
           
 void setEnvironmentVariables ( String[] vars)
           
 void setEnvironmentVariables ( String[] names, String[] values)
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_subsystem

protected 
IRemoteCmdSubSystem _subsystem

_workingDirectory

protected 
IRemoteFile _workingDirectory

_cmdShell

protected 
IRemoteCommandShell _cmdShell

_envVars

protected 
List _envVars

_outputLineIndex

protected int _outputLineIndex

_runAsShell

protected boolean _runAsShell
Constructor Detail

SimpleCommandOperation

public SimpleCommandOperation(
IRemoteCmdSubSystem subsystem,
                              
IRemoteFile workingDirectory,
                              boolean runAsShell)
Method Detail

getCommandShell

public 
IRemoteCommandShell getCommandShell()

setEnvironmentVariable

public void setEnvironmentVariable(
String name,
                                   
String value)

setEnvironmentVariables

public void setEnvironmentVariables(
String[] names,
                                    
String[] values)

setEnvironmentVariables

public void setEnvironmentVariables(
String[] vars)

getEnvironmentVariables

public 
String[] getEnvironmentVariables()

runCommand

public void runCommand(
String command,
                       boolean exitShell)
                throws 
Exception
Run a command

Parameters:
command - the command to run
exitShell - indicates whether to exit the shell after running the command
Throws:
Exception

runCommandInShell

public void runCommandInShell(
String exports,
                              
String command,
                              boolean exitShell)
                       throws 
Exception
Launch a shell with the specified exports and command

Parameters:
exports - the command to initialize the shell environment
command - the command to run
exitShell - indicates whether to exit the shell after running the command
Throws:
Exception

removeShell

public void removeShell()

exitShell

public void exitShell()

putInput

public void putInput(
String input)
              throws 
Exception
Throws:
Exception

isActive

public boolean isActive()

hasMoreOutput

protected boolean hasMoreOutput()

cancelCommand

public void cancelCommand()
                   throws 
Exception
Throws:
Exception

readLine

public 
String readLine(boolean waitForOutput)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire