/** * @title Run Command Line Statements JPad.cmd * @description Run command line statements from JPad. * @tags jpad,cmd * @url http://jpad.io/example/1z/run-command-line-statements-jpad-cmd */ // JPad.cmd runs commands as if entered at the command line. // Run command line in array format // useful to reduce need for escaping quotes etc. Dump(JPad.cmd(new String[] { "echo","hello world!"} )); // Run command - String format as you would write at terminal Dump(JPad.cmd("java -version"));