NwConsole is like a Swiss army knife; there are all kinds of tools buried underneath its command line interface. NwConsole is multi-platform; executables are available for CentOS (it already ships on appliances), Windows, and Mac.
Basic Command Line Parameters
Here are some basic command line parameters:
- To run a set of commands from a file:
NwConsole -f /tmp/somefile.script
To pass in a list of commands from the command line:
NwConsole -c <command1> -c <command2> -c <command3>
This is not necessarily recommended except for very simple scripts. The bash interpreter can make mincemeat out of quoted strings if you do not escape properly. If you are having non-obvious errors passing via command line, switch over to reading from a file to see if that fixes the issues.
Normally, console exits after running commands passed via a file or command line, but if you want to keep the interactive prompt open after the commands are executed, pass
-ion the command line.
And of course, you can just run NwConsole and type the commands in the console window.
You can use the keys in the following table when editing a command.