Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The NetworkManager Applet running on my Ubuntu can show me all wireless connections that I've made over the years with their names and last connection times. However, the applet does not allow me to save this list in a machine readable format (e.g. csv or xml). How could I do it? Is this list stored somewhere in the file system in plain text?

share|improve this question
up vote 0 down vote accepted

I solved the problem with a quick and ugly commandline:

find $HOME/.gconf/system/networking/connections/ -name "%gconf.xml" | xargs -n 1 bash parse_wifi_conf.sh | grep -v '^\s*$'

where parse_wifi_conf.sh is defined as

cat $1 | egrep "Auto|\"id\"" | tr '\012' ' ' | sed 's/^.*mtime="\([^"]*\)".*>Auto \([^<]*\)<.*$/\1\t\2/'
echo

This prints out two tab-separated columns: the timestamp of the last connection time and the name of the network.

share|improve this answer
    
facepalm can has gconftool? – Hello71 Apr 12 '11 at 21:31
    
Hello71, can you be more specific? – Kaarel Apr 12 '11 at 21:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .