Subject: Re: run ddb(4) in "batch mode"
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: current-users
Date: 03/28/2007 16:00:04
Valeriy E. Ushakov --> current-users (2007-03-28 17:50:36 +0400):
> On Wed, Mar 28, 2007 at 15:45:02 +0200, Jukka Salmi wrote:
> 
> > This didn't really work as expected because the ddb.commandonenter
> > commands caused ddb to print more than ddb.lines (24) lines of output;
> > thus ddb waited for user input to print the next page of output, and
> > didn't execute the `reboot' command automatically...
> > 
> > To fix this problem I added a new variable `batchmode', accessible via
> > sysctl(3) as the other built-in ddb variables.
> 
> Uhm.  What's wrong with ddb.lines=0 (except that 0 being magic is not
> documented in ddb(4))?

Uh, probably nothing, except that it's not documented ;-)

Thanks for the hint.


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~