I'm running hostapd on my raspberry PI to let it function as an accesspoint. It's working fine with the following command:
sudo hostapd /etc/hostapd/hostapd.conf
This will start hostapd and log all output to the console. Now I want to log this output using TEE or pipe. However, one the following commands will cause the program not to start.
sudo hostapd /etc/hostapd/hostapd.conf >> /home/pi/Desktop/loggin.txt
sudo hostapd /etc/hostapd/hostapd.conf > /home/pi/Desktop/loggin.txt
sudo hostapd /etc/hostapd/hostapd.conf | tee log.txt
The terminal will just hang and I have to use ctrl-x to terminate. Why isn't this working? And how can I possibly fix this?
sudo
anything work that way? It should, but differentsudo
configs might not allow that if the terminal is not their outfile. And are you sure it is just hanging and not actually working? – mikeserv Dec 01 '14 at 16:22sudo unbuffer /etc/hostapd/hostapd.conf | tee log.txt
, do you see output now? – Gilles 'SO- stop being evil' Dec 02 '14 at 15:12