Java exec exec(String exec)

Here you can find the source of exec(String exec)

Description

exec

License

Open Source License

Declaration

private static void exec(String exec) throws IOException 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2006-2008 VecTrace (Zingo Andersen) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*from   w  ww  . j  a  v  a 2s .com*/
 *     VecTrace (Zingo Andersen) - implementation
 *     Software Balm Consulting Inc (Peter Hunnisett <peter_hge at softwarebalm dot com>) - some updates
 *     StefanC                   - some updates
 *     Stefan Groschupf          - logError
 *     Bastian Doetsch           - updates, cleanup and documentation
 *     Andrei Loskutov           - bug fixes
 *******************************************************************************/

import java.io.IOException;

public class Main {
    private static void exec(String exec) throws IOException {
        //Runtime.getRuntime().exec(getHGExecutable());
        new ProcessBuilder(exec).start();
    }
}

Related

  1. exec(String command)
  2. exec(String command)
  3. exec(String command, String workingDir)
  4. exec(String command, String[] args_, String[] environment)
  5. exec(String command[], boolean stop)
  6. exec(String program, String... args)
  7. exec(String pwd, boolean quiet, String... command)
  8. exec(String... _command)
  9. exec(String... args)