[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:68] Re: Bad "less" command ?



ggbutcher wrote:
> On Mar 30, 10:00 am, п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚ п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚п·б╘Б∙╚ <[email protected]> wrote:
>> In ttylinux I am type :
>>
>> dropbear --help
>>
>> and view help info. But when I am type :
>>
>> dropbear --help|less
>>
>> i am do not view help info . Why ?
> 
> It's because dropbear is writing the help text to stderr.  I did this:
> 
> dropbear --help 2> db.txt
> 
> and the help text went to the file. Now, while I know how to redirect
> stderr, I do not know how to pipe it to less... :)
> 
> g
> 

Actually, there is no --help option for dropbear and it is
giving a long error message that is the same thing as help.
That is why the output goes to stderr.