Class ShellUtil

java.lang.Object
com.eco.bio7.console.ShellUtil

public class ShellUtil extends Object
A shell utility class which opens a terminal and starts a process with arguments.
  • Constructor Details

    • ShellUtil

      public ShellUtil()
  • Method Details

    • execShellCommand

      public void execShellCommand(HashMap<String,Object> properties)
      A method to execute shell commands
      Parameters:
      properties - a HashMap with terminal properties.
    • execShellCommand

      public void execShellCommand(String title, String processPath, String processArgs)
      A method to execute shell commands.
      Parameters:
      title - the title (id) of the tab
      processPath - the path to the process
      processArgs - the arguments for the process
    • terminateProcess

      public void terminateProcess()
      A method to terminate the current process.
    • terminateProcess

      public void terminateProcess(HashMap<String,Object> properties)
      A method to terminate the current process.
      Parameters:
      properties - the properties the process started with.
    • closeProcess

      public void closeProcess()
      A method to close the current process.
    • closeProcess

      public void closeProcess(HashMap<String,Object> properties)
      A method to close the current process.
      Parameters:
      properties - the properties the process started with.