All pastes #2120557 Raw Edit

Something

public text v1 · immutable
#2120557 ·published 2012-02-21 23:46 UTC
rendered paste body
public class Foo()
{
        public  Process runProcess() throws IOException
	{
		String execCmd = getTargetAlgorithmExecutionCommand();
		System.out.println(execCmd);
		Process proc = Runtime.getRuntime().exec(execCmd,null, new File(execConfig.getAlgorithmExecutionDirectory()));
	
	
		return proc;
	}

	public void processRunLoop(Scanner procIn)
	{
		while(procIn.hasNext())
		{
			String line = procIn.nextLine();
			processLine(line);
			
		}	
	}
	
	@Override
	public void run() {
			
		Process proc;
		
		
	        proc = runProcess();
	        Scanner procIn = new Scanner(proc.getInputStream());
		
	        processRunLoop(procIn);
         }

}