ps g > /tmp/Xpid.$$
grep 'X :0' /tmp/Xpid.$$ | cut -c1-5 > $HOME/.Xpid.`hostname`
rm -rf /tmp/Xpid.$$
