cd
command. The path will be expanded and fully qualified.runCommand()
will run another command from the shell inline and wait for it to complete. Any output from the command you run will be sent to the console. You must pass the command and any parameters in exactly as you would enter in the interactive shell which includes escaping any special characters.runCommand()
will send their output to the console. It is possible to capture that output for your own purposes.Note You won't be able to capture any output that's already flushed directly to the console.