Package com.glitchybyte.glib.process
Class GOSUnknown
java.lang.Object
com.glitchybyte.glib.process.GOSInterface
com.glitchybyte.glib.process.GOSUnknown
Specialization of GOSInterface for unknown OS. It will throw exceptions on every call.
-
Field Summary
Fields inherited from class com.glitchybyte.glib.process.GOSInterface
instance, osType, SIGINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getShellCommand(String command) Returns a command array ready to call the shell with the given script.String[]getSignalCommand(sun.misc.Signal signal, long pid) Returns the command array that will send the given signal to the pid.Methods inherited from class com.glitchybyte.glib.process.GOSInterface
createProcessBuilder, execute, execute, execute, execute, executeWithResult, executeWithResult, isSuccessfulExitCode, makeCommand, sendSignal, sendSignalINT
-
Constructor Details
-
GOSUnknown
public GOSUnknown()Creates an unknown OS interface.
-
-
Method Details
-
getShellCommand
Description copied from class:GOSInterfaceReturns a command array ready to call the shell with the given script.- Specified by:
getShellCommandin classGOSInterface- Parameters:
command- Shell command with args.- Returns:
- A new command string.
-
getSignalCommand
Description copied from class:GOSInterfaceReturns the command array that will send the given signal to the pid.- Specified by:
getSignalCommandin classGOSInterface- Parameters:
signal- Signal to send.pid- Pid of process.- Returns:
- Command array.
-