Get rid of that “mame†parameter. Sorry, I typed on an iPhone and it can get tough some times. Essentially, you want to tell the terminal to execute a script or binary, and then pass parameters to it. In your case, the parameter would be listing xml, and the second part is to capture terminal output and store it in a file.