FileDocCategorySizeDatePackage
Exec.javaAPI DocAndroid 1.5 API2077Wed May 06 22:41:56 BST 2009android.os

Exec

public class Exec extends Object
hide
Tools for executing commands. Not for public consumption.

Fields Summary
Constructors Summary
Methods Summary
public static java.io.FileDescriptorcreateSubprocess(java.lang.String cmd, java.lang.String arg0, java.lang.String arg1)

param
cmd The command to execute
param
arg0 The first argument to the command, may be null
param
arg1 the second argument to the command, may be null
return
the file descriptor of the started process.

        return createSubprocess(cmd, arg0, arg1, null);
    
public static native java.io.FileDescriptorcreateSubprocess(java.lang.String cmd, java.lang.String arg0, java.lang.String arg1, int[] processId)

param
cmd The command to execute
param
arg0 The first argument to the command, may be null
param
arg1 the second argument to the command, may be null
param
processId A one-element array to which the process ID of the started process will be written.
return
the file descriptor of the started process.

public static native voidsetPtyWindowSize(java.io.FileDescriptor fd, int row, int col, int xpixel, int ypixel)

public static native intwaitFor(int processId)
Causes the calling thread to wait for the process associated with the receiver to finish executing.

return
The exit value of the Process being waited on