Archive for October, 2010

Why a PC with multiple adapters on the same network can cause trouble

October 29, 2010

I had my Windows XP laptop connected to my home “workgroup” network with wlan and ethernet network adapter at the the same time. Normally one would guess, just as this Microsoft KB article suggests, that this might not be benificial, but at least it does not do much harm either.

Well, guess again. The “double connection” caused my XP PC to not show up on the windows network any more and any connections between the windows XP and the windows 7 pc would fail.

Advertisements

Unix: Copy a list of files

October 1, 2010

In one project, we have a selection of files I want to update from another directory tree containing much more stuff. Here’s how I get the selection of files I want to copy:


find . -type f | egrep -v '/\.svn/|\.obj' > selection.txt

For copying only the files named in selection.txt, I use tar to build an archive from those files:


tar czvf files.tgz -T selection.txt

By extracting those files, you have a copy of only those files you wanted with relative directories created as well. (–from-file is synonymous to -T)