On Sun, Jun 05, 2016 at 02:33:05PM +0200, Bima H. wrote: > I want to run wpa_supplicant with debug mode in background. But if I > invoke it from bash script, it just print some debug messages in > initial phase in syslog, not all messages as long as the programm > runs. How can I make debugging in background running as long as > wpa_supplicant runs? I want to add debug support in openwrt. I don't > want to use "&" at the end of invoking command because it distorts the > exit status and don't want to let it run in foreground for the same > reason and script-hanging. Strangely hostapd doesn't have problem in > debugging mode in background and just logs all messages normally. Building wpa_supplicant with CONFIG_DEBUG_FILE=y in wpa_supplicant/.config and using the -f command line option to specify the log file is likely the easiest approach for this. -- Jouni Malinen PGP id EFC895FA _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap