public static String execCommand(String... cmd) throws IOException {
        return execCommand(cmd, -1);
    }
@Test
    public void testEchoHello() throws Exception {
        String output = Shell.execCommand("echo", "hello");
        assertEquals("hello\n", output);
    }