|
Hi
new String[] creates a new array (or collection) of strings.
Each comma seperated value in {"/bin/sh","-c" ... is one element in the array, these are processed sequentially be exec
/bin/sh is the first statement to be processed and sets up the correct environment for the rest of the elements.
/bin/sh is a default shell/terminal for executing commands, similar to a dos prompt in windows. Unlike a generic Dos prompt, most linux distributions include different shells (e.g. bash) with slightly dfferent features and semantics.
Mark
|