Executes a shell command and returns the status of the command. In case of an error it will return -1.
status = system( "ls" );