The NetWare Core Protocol (NCP) Console Command (NCPCON) utility provides an interface for issuing NetWare commands in a Linux environment. You can issue commands via the NCPCON in three modes:
Open a terminal console, log in as the root user, then enter
This opens the NCPCON interactive console in the terminal console, so you can enter the NCP Server console commands. Enter exit to stop interactive mode.
Escaping the quotation mark character (") is not required when you enter the command from the ncpcon prompt.
For example, enter the following commands from the ncpcon prompt:
shift VOL1:"path\file name with spaces.txt" shadow
send "hello world" to all
For command line mode, issue an NCP Server command at a terminal console prompt by prepending the command with ncpcon:
When you use ncpcon to issue commands directly from the console command prompt, you must escape the quotation mark character (") by preceding the character with a backslash (\), such as \".
For example, enter the following commands from the terminal console prompt:
ncpcon mount sys
ncpcon shift VOL1:\"path\file name with spaces.txt\" shadow
ncpcon send \"hello world\" to all
For scripting mode, issue the NCP Server command in the script by prepending the command with ncpcon, then placing quotation marks (") around the NCP Server command:
If the command includes a field that must be contained in quotation marks (such as a file name), you must escape each internal quotation mark character (") with a backslash (\) character, such as \".
For example, place the following commands in a script file:
ncpcon "mount sys"
ncpcon "shift VOL1:\"path\file name with spaces.txt\" shadow"
ncpcon "send \"hello world\" to all"