Of course I tried ndc before responding.

Here's my best attempt at an explanation.  The next section of the man page,
after the COMMANDS section I posted before, says:

NOTES
     If running in pidfile mode, any arguments to start and restart commands
     are passed to the new named on its command line.  If running in channel
     mode, there is no start command and the restart command just tells the
     name server to execvp(2) itself.



So there's your restart command explained.  The '/help' command is
different from the 'help' command in that '/help' provides help for
builtin commands (i.e. the ones beginning with a '/' in the man page).
The 'help' command will help you with the full set of cammands
supported by the name server.  These commands are dynamic.


--Juan



On Mon, 24 Jan 2000, Vidiot wrote:

> Date: Mon, 24 Jan 2000 08:42:36 -0600 (CST)
> From: Vidiot <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: ndc non-functional?
> Resent-Date: 24 Jan 2000 14:43:01 -0000
> Resent-From: [EMAIL PROTECTED]
> Resent-cc: recipient list not shown: ;
> 
> >Did you read the man page?  It says without a command, it'll
> >prompt until it receives EOF (^D).  Besides that, it says:
> >
> >COMMANDS
> >     Several commands are built into ndc, but the full set of commands sup-
> >     ported by the name server is dynamic and should be discovered using the
> >     help command (see below).  Builtin commands are:
> >
> >     /help       Provides help for builtin commands.
> >
> >     /exit       Exit from ndc command interpreter.
> >
> >     /trace      Toggle tracing (see --t description above).
> >
> >     /debug      Toggle debugging (see -d description above).
> >
> >     /quiet      Toggle quietude (see -q description above).
> >
> >     /silent     Toggle silence (see -s description above).
> >
> >
> >Looks like you need a slash before your commands too.  :)  It's all
> >there in the man page.
> 
> Did you try ndc?
> 
>       ROOT <32> ndc
>       Type   help  -or-   /h   if you need help.
>       ndc> help
>       ndc: [220 8.2]
>       ndc: [214-]
>       ndc: [214-getpid]
>       ndc: [214-status]
>       ndc: [214-stop]
>       ndc: [214-exec]
>       ndc: [214-reload]
>       ndc: [214-dumpdb]
>       ndc: [214-stats]
>       ndc: [214-trace]
>       ndc: [214-notrace]
>       ndc: [214-querylog]
>       ndc: [214-qrylog]
>       ndc: [214-help]
>       ndc: [214 quit]
>       ndc>
> 
> Notice how it says "help" not "/help".
> 
> OK, so I used /help.  All it was supply the same set of subcommands listed
> in the man page.  Yet, in a previous query to a posting, I was informed
> that "restart" was a ndc command.  Funny, but it isn't listed in either
> help list, yet it works.
> 
> Explanation?
> 
> MB


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to