Created
April 13, 2016 04:01
-
-
Save Spitfire1900/181d4fde57131cf2d4ae0b900d080e90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from java.lang import ProcessBuilder | |
from java.lang.ProcessBuilder import Redirect | |
builder = ProcessBuilder(["fairymax"]) | |
builder.redirectInput(Redirect.INHERIT) | |
builder.redirectOutput(Redirect.INHERIT) | |
builder.redirectError(Redirect.INHERIT) | |
builder.start().waitFor() | |
#### OUTPUT #### | |
#tellics say Fairy-Max 4.8V | |
#tellics say by H.G. Muller | |
#tellics say Gothic Chess is protected by U.S. patent #6,481,716 by Ed Trice. | |
#tellics say Falcon Chess is protected by U.S. patent #5,690,334 by George W. Duke | |
#program hangs here, occasionally you can provide stdin but then you get a name undefined error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python this is synonymous with:
This also does not work in Jython.