Whatever Goes
Sunday, May 15, 2011
ProcessBuilder cmd with wildcard
The wildcard '*' needs to be interpreted by a shell. One approach is to invoke the shell using the
varargs
approach
ProcessBuilder procBldr = new ProcessBuilder("sh","-c","cp -f /tmp/src/*.zip /tmp/removeme");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment