https://github.com/bleuzen/javux
Java library to do things on Linux
https://github.com/bleuzen/javux
java java-library linux shell
Last synced: about 2 months ago
JSON representation
Java library to do things on Linux
- Host: GitHub
- URL: https://github.com/bleuzen/javux
- Owner: Bleuzen
- License: mit
- Created: 2017-06-30T08:32:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T08:57:37.000Z (almost 9 years ago)
- Last Synced: 2025-08-22T06:51:16.037Z (10 months ago)
- Topics: java, java-library, linux, shell
- Language: Java
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Javux
Java library to do things on Linux
Script examples
```java
// Python 3 example
Script pythonScript = new Script(ScriptInterpreter.PYTHON3);
pythonScript.addLine("print(\"hi\")");
System.out.println(pythonScript.exec().getOutput());
// ZSH example
Script zshScript = new Script(ScriptInterpreter.ZSH);
zshScript.addLine("echo hi");
System.out.println(zshScript.exec().getOutput());
// SH (default) example
Script script = new Script();
script.addLine("echo hi");
System.out.println(script.exec().getOutput());
```