Skip to main content
4 votes
1 answer
162 views

Apache Commons Exec Problems Handling Regex Argument?

I'm trying to use Apache Commons Exec to run a git command which uses a regex. When I form my CommandLine and print it out it looks like this: [git, --no-pager, grep, --line-number, --untracked, --...
ragurney's user avatar
  • 454
0 votes
0 answers
103 views

msi installer is not working with apache commons exec throws exit code 1639

I am trying to install a software with .msi file and it is working fine when I try in the Windows command prompt. But the same is not working in apache commons exec. When I run thru apache commons ...
Bala's user avatar
  • 204
0 votes
1 answer
105 views

Running Jekyll from Java program under eclipse on OSX

I have a java program that does some preparation and then invokes Jekyll on the content it's prepared. Jekyll is a Ruby program installed on the local PC as a gem. On windows and linux, no problem, ...
Grahame Grieve's user avatar
0 votes
1 answer
105 views

Fail to execute mysql command to restore dump with Apache Commons Exec

My goal is to restore a Mysql dump using mysql command. I'm having a clear difference of behaviour between a code using ProcessBuilder and Apache Commons Exec (1.3). This code works perfectly fine ...
mnementh64's user avatar
0 votes
1 answer
166 views

Trying to use Apache Common exec with bytebuffer to push output from one command to another command in java

My plan is to use ByteBuffer with Apache Common Exec to send output from one command as an input to another command. I am able to do this using PipedOutputStream and PipedInputStream and below is the ...
Md Faisal's user avatar
  • 2,991
1 vote
1 answer
683 views

Program hangs when trying to kill process, until eventually it is killed

I am working on fixing a bug that makes our CI/CD pipeline fails. During an integration test, we spin up a local database instance. In order to do this, we are using some mariadb wrappers to launch it ...
user avatar
1 vote
0 answers
764 views

Apache commons exec causing high CPU usage

Calling a particular executable (Jadeo) via commons-exec (using pipes for it's I/O) is causing massive CPU usage (over 30x) compared to calling same executable from the terminal. Idle wakeups are huge....
John Baker's user avatar
1 vote
3 answers
244 views

Java Rsync Escape Spaces

I am trying to run rsync from a jar. When the source path has no spaces it all works fine, but when the source path has a space in it, it fails. I have tried various methods for escaping the spaces, ...
karen's user avatar
  • 953
1 vote
1 answer
168 views

How can I download a file from a site that is protected with a username and password, using the Selenium framework?

I am trying to download a file from a site that is protected with a username and password, using Selenium. First, I got the href attribute from the download link: WebElement downloadLinkElement = ...
Narcis Neacsu's user avatar
3 votes
3 answers
2k views

Apache Commons exec PumpStreamHandler continuous input

I am trying to solve interaction with command line process using Apache Commons exec. I'm stuck with following code: ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream ins ...
MichalVales's user avatar
2 votes
1 answer
709 views

Error while running command consist of multiple parameters using apache commons exec

I am having trouble while running following command using apache commons exec: sysctl -n net.ipv4.neigh.default.gc_thresh3 The problem is it is giving the following error: Exception in thread "main" ...
ojas's user avatar
  • 2,220
3 votes
2 answers
4k views

Better way to run pipe command using apache commons exec

I am using apache commons exec to run command: arp | wc -l Below is my code: private String runCommand(String cmd, String params) { CommandLine commandLine = new CommandLine(cmd); ...
ojas's user avatar
  • 2,220
1 vote
0 answers
151 views

Spawning separate windows for new processes with Apache Commons Exec?

I'm attempting to launch several batch files in their own windows using the Apache Commons Exec library, and although I'm able to launch them properly, I'm running into one small issue where the ...
Darin Beaudreau's user avatar
1 vote
0 answers
41 views

Apache ExectuorWatchDog hangs while writing to System.out/JtextArea

I am executing testng.xml(having 40 Testcases) from cmd shell using Apache.commons.exec.Executor in java with following code : public static void executeBatch(String folderLoc) throws Exception { ...
Anu Chawla's user avatar
0 votes
2 answers
2k views

Unable to get output from Apache Commons Exec

Although the titles are very similar, this questions is NOT a duplicate of Process output from apache-commons exec. I am trying to get the output of a command by using apache-commons exec. Here is ...
lakshayg's user avatar
  • 2,193

15 30 50 per page
1
2 3 4 5 6