execute a command @param handler name of the handler @param env custom environment variables @param cmd arguments for the child @param receiver the org.csploit.android.core.Child.EventReceiver that will receive child events @return the process exit value @throws InterruptedException
(String handler, String cmd, String[] env, EventReceiver receiver)
| 57 | * @throws ChildDiedException if child get killed |
| 58 | */ |
| 59 | public static int exec(String handler, String cmd, String[] env, EventReceiver receiver) throws InterruptedException, ChildDiedException, ChildNotStartedException { |
| 60 | return wait(async(handler, cmd, env, receiver)); |
| 61 | } |
| 62 | |
| 63 | public static int exec(String handler, String cmd) throws InterruptedException, ChildDiedException, ChildNotStartedException { |
| 64 | return exec(handler, cmd, null, null); |
no test coverage detected