Capturing wpa_supplicant -dd output?

Arend van Spriel arend at
Thu Apr 25 03:27:14 EDT 2013

On 04/25/2013 05:43 AM, The Wanderer wrote:
> On 04/24/2013 05:37 PM, Jouni Malinen wrote:
>> On Wed, Apr 24, 2013 at 11:44:33AM -0400, The Wanderer wrote:
>>> The full command line being run is:
>>> wpa_supplicant -B -P "/var/run/" -i "wlan1"
>>> -D nl80211,wext -t -dd -c "/etc/wpa_supplicant/wpa_supplicant.conf"
>> You cannot fork the process to background (-B) and record the log to
>> stdout. stdout is closed whenever -B is included in the command line
>> and this will stop any logging. If you want to get the stdout stored
>> to a file, you would need to either keep the process on foreground or
>> use a command like "wpa_supplicant .... > /tmp/log &".
> Thanks; I can work with that.
>  From your description, I would expect running with '-B' to not print any
> output at all even when not redirected, so I'm not entirely sure I
> understand what's actually going on here. I don't have to understand it
> to be able to use the results, however.

If you want to use -B there is also a -s option, which results in output 
being logged in syslog. Can be useful if you want to correlate its 
logging to logging from driver and other user-space apps.

Gr. AvS

More information about the HostAP mailing list