Registry / utility / commons-exec

commons-exec

JSON →
library1.6.0javamavenunverified

Apache Commons Exec is a library that reliably executes external processes from within the JVM.

<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-exec</artifactId> <version>1.6.0</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-EXEC
C
commons-exec
utilityjavav1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommandLine
org.apache.commons.exec.CommandLine

Executes an external command (ls -l) and prints the exit value.

import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.DefaultExecutor; public class Example { public static void main(String[] args) throws Exception { CommandLine cmdLine = new CommandLine("ls"); cmdLine.addArgument("-l"); DefaultExecutor executor = new DefaultExecutor(); int exitValue = executor.execute(cmdLine); System.out.println("Exit value: " + exitValue); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources