Class Shell
java.lang.Object
org.tweetyproject.commons.util.Shell
- Direct Known Subclasses:
CygwinShell,NativeShell
Provides several ways to run unix commands on different OSes.
- Author:
- Nils Geilen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellgetCygwinShell(String binary) a wrapper around the cygwin shellstatic Shella wrapper for the os' native shellabstract Stringruns command
-
Constructor Details
-
Shell
public Shell()Default Constructor
-
-
Method Details
-
getNativeShell
a wrapper for the os' native shell- Returns:
- a wrapper for the os' native shell
-
getCygwinShell
-
run
runs command- Parameters:
cmd- the command to be run- Returns:
- the terminal output
- Throws:
InterruptedException- if some interruption occurred.IOException- if some IO issue occurred.
-