After a lot of searching I found this: http://www.coderanch.com/t/423573/java/java/Passing-wilcard-Runtime-exec-command
Runtime.exec(new String[] { "sh", "-c", "rm /tmp/ABC*" });
More Related Contents:
- Runtime’s exec() method is not redirecting the output
- Capturing stdout when calling Runtime.exec
- How to run Unix shell script from Java code?
- How do I run a batch file from my Java Application?
- How to find files that match a wildcard string in Java?
- Running Command Line in Java [duplicate]
- Run a JAR file from the command line and specify classpath
- Difference between ProcessBuilder and Runtime.exec()
- How to execute command with parameters?
- How to invoke a Linux shell command from Java
- execute shell command from android
- How to use a wildcard in the classpath to add multiple jars? [duplicate]
- Execute external program
- The issue of * in Command line argument
- Difference between generic type and wildcard type
- How to determine if a List is sorted in Java?
- Java Generics WildCard Question: List
- How to Execute Windows Commands Using Java – Change Network Settings
- Redirection with Runtime.getRuntime().exec() doesn’t work
- How to get local application data folder in Java? [duplicate]
- Multiple commands through JSch shell
- Redirect Runtime.getRuntime().exec() output with System.setOut();
- When to use wildcards in Java Generics?
- Nested wildcards
- Using Quotes within getRuntime().exec
- Eclipse RCP: Actions VS Commands
- How do generics of generics work?
- Having spaces in Runtime.getRuntime().exec with 2 executables
- Java generics, Unbound wildcards vs
- Multiple commands on remote machine using shell script