Class GOSLinux

java.lang.Object
com.glitchybyte.glib.process.GOSInterface
com.glitchybyte.glib.process.GOSLinux

public final class GOSLinux extends GOSInterface
Specialization of GOSInterface for Linux and macOS.
  • Constructor Details

    • GOSLinux

      public GOSLinux()
      Creates a Linux OS interface.
  • Method Details

    • getShellCommand

      public String[] getShellCommand(String command)
      Description copied from class: GOSInterface
      Returns a command array ready to call the shell with the given script.
      Specified by:
      getShellCommand in class GOSInterface
      Parameters:
      command - Shell command with args.
      Returns:
      A new command string.
    • getSignalCommand

      public String[] getSignalCommand(sun.misc.Signal signal, long pid)
      Description copied from class: GOSInterface
      Returns the command array that will send the given signal to the pid.
      Specified by:
      getSignalCommand in class GOSInterface
      Parameters:
      signal - Signal to send.
      pid - Pid of process.
      Returns:
      Command array.