Comments (4)
Can you explain the session based approach a bit more?
from zt-exec.
For example;
new ProcessExecutor().in(System.in).out(System.out).err(System.err).join();
After that, when you type commands to console, you will see out or error in session manner. Not only for one time command execution. Like a continious stream.
from zt-exec.
Hi,
ProcessExecutor expects a specific command to be executed, it can't be read from an input stream directly (you can implement it yourself either in Java or in some other language). If you know the command you can use the System streams like this:
new ProcessExecutor("command").redirectInput(System.in).redirectOutput(System.out).redirectError(System.err).execute();
from zt-exec.
Thanks
from zt-exec.
Related Issues (20)
- redirectError example is confusing HOT 3
- output not redirected when launching sub-processes on windows? HOT 1
- Apple Silicon Could not initialize class org.zeroturnaround.process.unix.LibC. HOT 2
- What is the default execution timeout HOT 1
- SSH Command, gives "Pseudo-terminal will not be allocated because stdin is not a terminal." HOT 1
- Support Java Modules HOT 8
- No such file or directory HOT 2
- Chinese encoding HOT 1
- ProcessExecutor getPid? HOT 4
- Question: How I can pickup stderr from ProcessResult HOT 5
- Java 11 Support HOT 2
- Support for Linux pipe command HOT 2
- bash script support HOT 1
- Use custom executor service in a thread-controlled environment HOT 1
- Missing Git tag for the 1.12 version. HOT 1
- Build an OSGi Bundle from this HOT 1
- How to select cmd or PowerShell when running on windows? HOT 1
- Changing directory support HOT 2
- Executable not found in PATH directories on Windows HOT 2
- While the process is running, is it possible to send input to it? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zt-exec.