Class UnixSystemCommandExecuterImpl
- java.lang.Object
-
- com.github.toolarium.system.command.impl.AbstractSystemCommandExecuterImpl
-
- com.github.toolarium.system.command.impl.UnixSystemCommandExecuterImpl
-
- All Implemented Interfaces:
ISystemCommandExecuter
- Direct Known Subclasses:
LinuxSystemCommandExecuterImpl
public class UnixSystemCommandExecuterImpl extends AbstractSystemCommandExecuterImpl
Implements a unix based system command executerto proper use under linux you have to close streams:
my.log 2>&1 </dev/zero &
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.toolarium.system.command.impl.AbstractSystemCommandExecuterImpl
AbstractSystemCommandExecuterImpl.PlatformDependentCommand
-
-
Constructor Summary
Constructors Constructor Description UnixSystemCommandExecuterImpl(IProcessEnvironment processEnvironment, ISystemCommand systemCommand)
Constructor for WindowsSystemCommandExecuterImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
getShellCommand(IProcessEnvironment processEnvironment, ISystemCommand systemCommand)
Get the shell command-
Methods inherited from class com.github.toolarium.system.command.impl.AbstractSystemCommandExecuterImpl
createProcessBuilder, preparePlatformDependentCommandList, runAsynchronous, runSynchronous, runSynchronous, validateProcessEnvironment, validateSystemCommand
-
-
-
-
Constructor Detail
-
UnixSystemCommandExecuterImpl
public UnixSystemCommandExecuterImpl(IProcessEnvironment processEnvironment, ISystemCommand systemCommand)
Constructor for WindowsSystemCommandExecuterImpl- Parameters:
processEnvironment
- the process environmentsystemCommand
- the system command
-
-
Method Detail
-
getShellCommand
protected java.util.List<java.lang.String> getShellCommand(IProcessEnvironment processEnvironment, ISystemCommand systemCommand)
Description copied from class:AbstractSystemCommandExecuterImpl
Get the shell command- Specified by:
getShellCommand
in classAbstractSystemCommandExecuterImpl
- Parameters:
processEnvironment
- the process environmentsystemCommand
- the system command- Returns:
- the shell command
- See Also:
AbstractSystemCommandExecuterImpl.getShellCommand(com.github.toolarium.system.command.IProcessEnvironment, com.github.toolarium.system.command.ISystemCommand)
-
-