NwConsole is like a Swiss army knife; it contains many tools buried underneath its command line interface. NwConsole is multi-platform. Executables are available for CentOS, Windows, and Mac. NwConsole is included on all hosts.
Basic Command Line Parameters
Here are some basic command line parameters:
- To run a set of commands from a file, us the
-fattribute as shown here:
NwConsole -f /tmp/<somefile.script>
To pass in a list of commands from the command line, use the
-cattribute as shown here:
NwConsole -c <command1> -c <command2> -c <command3>
This is not recommended except for very simple scripts. The Bash interpreter can jumble quoted strings if you do not escape properly. If you have non-obvious errors passing through the command line, switch to reading from a file to see if that fixes the issues.
Normally, the Nwconsole exits after running commands passed by a file or command line. If you want to keep the interactive prompt open after the commands are executed, include
-iin the command line.
You can also run NwConsole and type the commands in the console window.
You can use the keys in the following table when editing a command.