how to save the output of hostapd

Masashi Honma masashi.honma
Sun Mar 25 17:29:55 PDT 2012


2012/3/25 David Martin <david.martin.mailbox at googlemail.com>:
> Hey,
>
> On Sat, Mar 17, 2012 at 7:33 PM, Jouni Malinen <j at w1.fi> wrote:
>> On Sat, Mar 17, 2012 at 12:44:36PM +0800, why wrote:
>>> I want to save the output of hostapd, I use "hostapd -B | tee 1.txt", but it does not work. Can someone help me? Thank you.
>>
>> The -B argument requests hostapd to run in the background, i.e., that
>> command exists immediately after initial setup. If you want to record
>> output from the process, you'll need to start it without -B and, e.g.,
>> direct stdout/stderr to a file.
>
> Interestingly enough hostapd does not seem to work with tee. For example
> 'hostapd 2>&1 | tee hostapd.log'
> does not produce any output, neither in the logfile nor on the
> terminal. Anyone got an idea what the problem is?

I think you terminated hostapd with Ctrl-C.
If you terminate hostapd with "kill" command via another terminal, you
can get full logs.

Regards,
Masashi Honma.



More information about the Hostap mailing list