Le Saturday 27 August 2005 à 03:17:29, Dag Wieers a écrit:
> On Fri, 26 Aug 2005, Leo Eraly wrote:
> 
> > dconf can be called with the -o option
> > this gives the user the ability to specify a different
> > output file (default in /var/log/dconf/)
> > 
> > dconf tries to create a file in /var/log/dconf. Maybe it should send its
> > output to stdout by default?
> > 
> > Some files may not be readable by a normal user but the command should
> > not just stop with a "Permission denied".
> 
> Writing it to standard out is not a good solution because it leaves it up 
> to the user to provide a filename. Enforcing a proper filename that you 
> can re-use by other tools is important for the simplicity of the program.
> 
> (ie. you should be able to run just 'dconf' before or after you made 
> important changes, nothing more complex)
> 
> You can still let dconf send the output to standard output by doing:
> 
>       dconf -o-

I really like the simplicity in Unix command line tools. stdout should
be the default output of any command like yours.

If you want to redirect the output somewhere you can use "dconf > file"
(preferred since that is the standard Unix way to do that) or "dconf -ofile".

If stdout is the default output you can use "dconf | grep whatever"
easily.

But I will let you choose what you think is best.

Regards,

-- 
 Dr. Ludovic Rousseau                        [EMAIL PROTECTED]
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to